84% track-your-writing

Code Review | Track-Your-Writing

WordPress plugin Track-Your-Writing scored84%from 54 tests.

About plugin

  • Plugin page: track-your-writing
  • Plugin version: 0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: May 3, 2018
  • Latest release: May 3, 2018
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: oscarssanchez (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /573 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.14MB] [CPU: ▼21.91ms] Passed 4 tests

Server-side resources used by Track-Your-Writing
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.35 ▼3.61
Dashboard /wp-admin3.23 ▼0.1236.72 ▼36.09
Posts /wp-admin/edit.php3.29 ▼0.0641.23 ▼10.54
Add New Post /wp-admin/post-new.php5.50 ▼0.3976.36 ▼35.58
Media Library /wp-admin/upload.php3.24 ▲0.0134.78 ▼5.44

Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Track-Your-Writing
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5313.67 ▼0.963.88 ▲2.2641.20 ▼3.04
Dashboard /wp-admin2,223 ▲465.61 ▼0.05104.35 ▲4.8840.23 ▼4.70
Posts /wp-admin/edit.php2,125 ▲252.66 ▲0.6840.73 ▲7.1035.23 ▼2.44
Add New Post /wp-admin/post-new.php1,702 ▲17423.45 ▲0.32646.52 ▼66.0828.54 ▼24.53
Media Library /wp-admin/upload.php1,428 ▲315.10 ▲0.94104.31 ▼0.7642.30 ▼3.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/track-your-writing/track-your-writing.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: writing, statistics, productivity

track-your-writing/track-your-writing.php Passed 13 tests

This is the main PHP file of "Track-Your-Writing" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
134 characters long description:
Track your and your site author's productivity with accurate and stunning visual data. Compare your progress and beat your past score!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected17,380 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript32,61039714,863
Markdown461302,193
PHP548158259
CSS116765

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity4.00
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity1.55
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods22
▷ Static methods14.55%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin