83% kento-top-commenters

Code Review | Kento Top Commenters

WordPress plugin Kento Top Commenters scored83%from 54 tests.

About plugin

  • Plugin page: kento-top-commenters
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.2.2
  • WordPress version: 6.3.1
  • First release: Feb 3, 2014
  • Latest release: Jun 9, 2015
  • Number of updates: 5
  • Update frequency: every 98.8 days
  • Top authors: kentothemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,253 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
Installer ran successfully

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

Analyzing server-side resources used by Kento Top Commenters
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.07 ▼3.13
Dashboard /wp-admin3.31 ▲0.0047.57 ▼3.49
Posts /wp-admin/edit.php3.36 ▲0.0047.63 ▼3.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.22 ▼2.70
Media Library /wp-admin/upload.php3.23 ▲0.0038.12 ▲4.39

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

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

Browser metrics Passed 4 tests

Kento Top Commenters: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲17113.98 ▼0.395.54 ▲3.6144.35 ▼4.15
Dashboard /wp-admin2,206 ▲185.88 ▲0.97101.79 ▲0.1640.23 ▼2.06
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0043.39 ▲3.5037.24 ▼0.51
Add New Post /wp-admin/post-new.php1,514 ▼1917.43 ▼5.76656.84 ▼30.8357.29 ▼2.56
Media Library /wp-admin/upload.php1,382 ▼34.29 ▲0.1395.79 ▼16.9641.42 ▼4.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/kento-top-commenters/index.php:13
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/kento-top-commenters/index.php on line 13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Style 1.), #2 (Style 2.), #3 (Style 3.), #4 (Widget Settings.)
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

kento-top-commenters/index.php 92% from 13 tests

"Kento Top Commenters" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("kento-top-commenters.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected164 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1221795
CSS110969

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png31.11KB11.71KB▼ 62.35%
screenshot-3.png10.88KB4.40KB▼ 59.53%
screenshot-2.png18.41KB8.30KB▼ 54.90%
screenshot-4.png14.88KB5.52KB▼ 62.91%