84% highlight-permalinked-comment

Code Review | Highlight Permalinked Comment

WordPress plugin Highlight Permalinked Comment scored84%from 54 tests.

About plugin

  • Plugin page: highlight-permali...
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 13, 2013
  • Latest release: Mar 13, 2013
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: evansolomon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /786 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.48ms] Passed 4 tests

Analyzing server-side resources used by Highlight Permalinked Comment
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.44 ▼3.65
Dashboard /wp-admin3.31 ▲0.0046.26 ▼4.13
Posts /wp-admin/edit.php3.36 ▲0.0045.66 ▲0.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.51 ▼1.53
Media Library /wp-admin/upload.php3.23 ▲0.0032.69 ▼0.62

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Highlight Permalinked Comment
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.48 ▼0.201.87 ▲0.0040.04 ▼2.21
Dashboard /wp-admin2,209 ▲214.86 ▼0.05100.61 ▼2.7337.26 ▼6.13
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0135.80 ▼0.8634.72 ▲2.52
Add New Post /wp-admin/post-new.php1,528 ▼518.62 ▼4.67638.38 ▼38.1449.61 ▼1.01
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0496.63 ▲2.1742.19 ▲1.32

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/highlight-permalinked-comment/highlight-permalinked-comment.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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
2 plugin tags: comment, permalink

highlight-permalinked-comment/highlight-permalinked-comment.php Passed 13 tests

The main PHP file in "Highlight Permalinked Comment" ver. 1.01 adds more information about the plugin and also serves as the entry point for this plugin
82 characters long description:
Briefly fade a highlighted background on comments when their permalink is visited.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected48 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript221124
CoffeeScript15614
PHP14288
Markdown1102

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.75
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin