84% plugin-compatibility-info

Code Review | Plugin Compatibility Info

WordPress plugin Plugin Compatibility Info scored 84% from 54 tests.

About plugin

  • Plugin page: plugin-compatibil...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.3
  • WordPress version: 6.3.1
  • First release: Sep 12, 2019
  • Latest release: Sep 12, 2019
  • Number of updates: 4
  • Update frequency: every 88.5 days
  • Top authors: codismo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 540 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

A check of server-side resources used by Plugin Compatibility Info
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.52 ▼2.37
Dashboard /wp-admin3.31 ▲0.0146.70 ▼1.17
Posts /wp-admin/edit.php3.36 ▲0.0151.64 ▼3.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.09 ▼3.58
Media Library /wp-admin/upload.php3.24 ▲0.0134.55 ▲2.67

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Plugin Compatibility Info
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.79 ▲0.431.78 ▲0.0241.22 ▲1.15
Dashboard /wp-admin2,203 ▲125.85 ▲0.9595.68 ▼2.8838.80 ▼3.98
Posts /wp-admin/edit.php2,089 ▼32.00 ▲0.0039.24 ▼0.5635.89 ▲0.22
Add New Post /wp-admin/post-new.php1,542 ▲818.37 ▼4.83592.07 ▼25.8253.65 ▲3.11
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0595.94 ▼2.0240.33 ▼3.35

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please take a closer look at the following
  • 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/plugin-compatibility-info/inc/class.general.php:20

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (The plugins page) image required
You can take inspiration from this readme.txt

plugin-compatibility-info/plugin-compatibility-info.php Passed 13 tests

The principal PHP file in "Plugin Compatibility Info" v. 1.0.0 is loaded by WordPress automatically on each request
135 characters long description:
Shows the version of WordPress that your plugins have been tested up to. For more information click the "Visit plugin site" link below.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected162 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP36597119
JavaScript1151227
CSS14016

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
No PNG files were detected