84% sort-recently-active-plugins

Code Review | Sort Recently Active Plugins

WordPress plugin Sort Recently Active Plugins scored84%from 54 tests.

About plugin

  • Plugin page: sort-recently-act...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Feb 1, 2018
  • Latest release: Feb 1, 2018
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: SergeyBiryukov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,655 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Server-side resources used by Sort Recently Active Plugins
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0144.61 ▲1.22
Dashboard /wp-admin3.32 ▼0.0259.74 ▼3.83
Posts /wp-admin/edit.php3.37 ▲0.0151.51 ▲4.70
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.70 ▼9.11
Media Library /wp-admin/upload.php3.24 ▲0.0135.63 ▲3.68

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Sort Recently Active Plugins
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.091.77 ▼0.1746.06 ▲1.74
Dashboard /wp-admin2,195 ▲155.63 ▲0.0590.91 ▼3.3143.80 ▼1.35
Posts /wp-admin/edit.php2,100 ▲31.98 ▼0.0238.63 ▼1.6834.52 ▼3.09
Add New Post /wp-admin/post-new.php1,526 ▼1123.67 ▲5.35625.32 ▼36.2560.84 ▼13.22
Media Library /wp-admin/upload.php1,394 ▼34.24 ▲0.03102.91 ▲1.6742.95 ▼1.07

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • sort_recently_active_plugins
    • db_upgraded

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sort-recently-active-plugins/sort-recently-active-plugins.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: plugins, admin

sort-recently-active-plugins/sort-recently-active-plugins.php Passed 13 tests

"Sort Recently Active Plugins" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
59 characters long description:
Sorts plugins in Recently Active list by deactivation date.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin44 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP118844

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin