84% terrys-commentary

Code Review | Terry's Commentary

WordPress plugin Terry's Commentary scored84%from 54 tests.

About plugin

  • Plugin page: terrys-commentary
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.2.2
  • WordPress version: 6.3.1
  • First release: May 13, 2015
  • Latest release: May 13, 2015
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: tychay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /758 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.82ms] Passed 4 tests

Analyzing server-side resources used by Terry's Commentary
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.34 ▼4.43
Dashboard /wp-admin3.32 ▲0.0145.10 ▼6.84
Posts /wp-admin/edit.php3.37 ▲0.0150.25 ▲0.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.28 ▼16.06
Media Library /wp-admin/upload.php3.24 ▲0.0136.44 ▲0.06

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Terry's Commentary
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲15213.60 ▼1.166.09 ▲4.1140.91 ▼4.49
Dashboard /wp-admin2,206 ▲214.82 ▼0.05100.09 ▼17.2041.14 ▼4.36
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0140.91 ▲4.6034.61 ▼3.05
Add New Post /wp-admin/post-new.php1,514 ▼523.49 ▲2.35637.33 ▼74.3849.36 ▼11.02
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0399.35 ▼1.7441.37 ▼1.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/terrys-commentary/terrys-commentary.php:118

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
The official readme.txt is a good inspiration

terrys-commentary/terrys-commentary.php Passed 13 tests

The entry point to "Terry's Commentary" version 1.0 is a PHP file that has certain tags in its header comment area
43 characters long description:
Make commentary a tooltip, support tooltips

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin239 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS241107
JavaScript1151381
PHP116651

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods350.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin