10% least-commented-posts

Code Review | Least commented posts plugins

WordPress plugin Least commented posts plugins scored 10% from 54 tests.

About plugin

  • Plugin page: least-commented-p...
  • Plugin version: 1.0.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.4.2
  • WordPress version: 6.3.1
  • First release: Nov 3, 2012
  • Latest release: Nov 9, 2012
  • Number of updates: 6
  • Update frequency: every 1.2 days
  • Top authors: ktkiss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 844 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/least-commented-posts/least-commented-posts.php+23
    Methods with the same name as their class will not be constructors in a future version of PHP; widget_test has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼54.78ms] Passed 4 tests

A check of server-side resources used by Least commented posts plugins
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.76 ▼43.04
Dashboard /wp-admin2.08 ▼1.226.08 ▼42.23
Posts /wp-admin/edit.php2.09 ▼1.276.85 ▼37.29
Add New Post /wp-admin/post-new.php2.09 ▼3.805.35 ▼96.57
Media Library /wp-admin/upload.php2.09 ▼1.145.93 ▼29.86

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Least commented posts plugins
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.27 ▼1.471.79 ▲0.0944.97 ▼0.21
Dashboard /wp-admin2,206 ▲185.85 ▼0.03107.47 ▼3.9442.47 ▼0.71
Posts /wp-admin/edit.php2,086 ▼02.00 ▲0.0040.56 ▲2.7536.23 ▼3.91
Add New Post /wp-admin/post-new.php1,546 ▲2523.21 ▲0.06679.72 ▲16.2459.30 ▲8.30
Media Library /wp-admin/upload.php1,385 ▼34.21 ▲0.10120.88 ▲17.1855.21 ▲7.79

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/least-commented-posts/least-commented-posts.php+23
    Methods with the same name as their class will not be constructors in a future version of PHP; widget_test has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_widget_test
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/least-commented-posts/least-commented-posts.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: least, post, commented

least-commented-posts/least-commented-posts.php 92% from 13 tests

"Least commented posts plugins" version 1.0.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 882 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin57 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16957

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
No PNG files were detected