84% more-plugin-info

Code Review | More Plugin Info

WordPress plugin More Plugin Info scored84%from 54 tests.

About plugin

  • Plugin page: more-plugin-info
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 6.3.1
  • First release: Nov 5, 2013
  • Latest release: Jul 7, 2017
  • Number of updates: 24
  • Update frequency: every 55.8 days
  • Top authors: Thaicloud (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

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

Server metrics [RAM: ▲0.08MB] [CPU: ▼7.00ms] Passed 4 tests

A check of server-side resources used by More Plugin Info
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0738.19 ▼1.90
Dashboard /wp-admin3.39 ▲0.0945.76 ▼2.73
Posts /wp-admin/edit.php3.44 ▲0.0849.55 ▲3.36
Add New Post /wp-admin/post-new.php5.97 ▲0.0884.46 ▼23.24
Media Library /wp-admin/upload.php3.32 ▲0.0836.63 ▼0.11
More Plugin Info /wp-admin/options-general.php?page=more-plugin-info3.2833.99

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for More Plugin Info
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲10513.26 ▼1.491.99 ▲0.3344.45 ▲4.17
Dashboard /wp-admin2,221 ▲325.90 ▲0.9694.51 ▼19.1339.66 ▼6.83
Posts /wp-admin/edit.php2,107 ▲362.00 ▼0.0240.27 ▲2.3436.75 ▲3.29
Add New Post /wp-admin/post-new.php1,528 ▼517.72 ▼5.51627.73 ▼93.5950.40 ▲0.73
Media Library /wp-admin/upload.php1,397 ▲124.19 ▲0.0292.78 ▼6.7941.35 ▼0.97
More Plugin Info /wp-admin/options-general.php?page=more-plugin-info8832.1822.5427.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/more-plugin-info/more-plugin-info.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI' not found in wp-content/plugins/more-plugin-info/includes/class-wp-cli-commands.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: downloads, plugin, ratings, meta

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

This is the main PHP file of "More Plugin Info" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
70 characters long description:
Display additional information about each plugin on the Plugins screen

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin373 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27888373

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity26.50
▷ Minimum class complexity6.00
▷ Maximum class complexity47.00
Average method complexity4.40
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin