84% display-active-plugins-first

Code Review | Display Active Plugins First

WordPress plugin Display Active Plugins First scored 84% from 54 tests.

About plugin

  • Plugin page: display-active-pl...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5
  • WordPress version: 6.3.1
  • First release: Jan 31, 2018
  • Latest release: Jul 23, 2020
  • Number of updates: 10
  • Update frequency: every 90.5 days
  • Top authors: SergeyBiryukov (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 2,380 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Display Active Plugins First
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.44 ▲5.78
Dashboard /wp-admin3.31 ▲0.0144.10 ▼6.46
Posts /wp-admin/edit.php3.36 ▲0.0145.84 ▲0.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.03 ▼14.25
Media Library /wp-admin/upload.php3.24 ▲0.0132.45 ▼3.37

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

A short overview of filesystem and database impact
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_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Display Active Plugins First
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼0.971.97 ▲0.0641.60 ▼4.78
Dashboard /wp-admin2,203 ▲155.82 ▲0.76198.43 ▲91.3941.82 ▼0.14
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0135.66 ▼1.0931.24 ▼3.00
Add New Post /wp-admin/post-new.php1,533 ▲1923.39 ▲5.79674.83 ▲22.3262.51 ▲7.42
Media Library /wp-admin/upload.php1,391 ▼04.21 ▼0.0696.09 ▼0.4243.69 ▲0.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

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
Even though no errors were found, 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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/display-active-plugins-first/display-active-plugins-first.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: plugins, admin

display-active-plugins-first/display-active-plugins-first.php Passed 13 tests

"Display Active Plugins First" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
73 characters long description:
Changes plugins display order in the admin, showing active plugins first.

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
There were no executable files found in this plugin25 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19825

PHP code Passed 2 tests

This is a very shot review 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.50
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods266.67%
▷ Protected methods00.00%
▷ Private methods133.33%
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
No PNG files were detected