10% plugin-scores

Code Review | plugin scores

WordPress plugin plugin scores scored 10% from 54 tests.

About plugin

  • Plugin page: plugin-scores
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 5.8.1
  • First release: Nov 13, 2014
  • Latest release: Jan 8, 2017
  • Number of updates: 20
  • Update frequency: every 81.9 days
  • Top authors: jondor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 750 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/plugin-scores/plugin_scores-plugin.php+20
    Declaration of plugin_scores_class::pluginInfoRight($info) should be compatible with basic_plugin_class::pluginInfoRight($info, $added = false)

Server metrics [RAM: ▼1.80MB] [CPU: ▼223.40ms] Passed 4 tests

Analyzing server-side resources used by plugin scores
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /1.83 ▼0.896.70 ▼14.39
Dashboard /wp-admin1.85 ▼1.215.22 ▼49.62
Posts /wp-admin/edit.php1.85 ▼1.266.29 ▼39.66
Add New Post /wp-admin/post-new.php1.85 ▼3.597.28 ▼768.09
Media Library /wp-admin/upload.php1.85 ▼1.164.80 ▼36.24
Funsite plugins /wp-admin/plugins.php?page=funsite_plugins1.867.37
My Plugins /wp-admin/plugins.php?page=plugins_scores_settings1.864.91

Server storage [IO: ▲0.03MB] [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: 10 new files
Database: no new tables, 1 new option
New WordPress options
recovery_mode_email_last_sent

Browser metrics Passed 4 tests

An overview of browser requirements for plugin scores
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,770 ▼82613.86 ▼2.009.62 ▼1.3553.65 ▲4.27
Dashboard /wp-admin2,030 ▼9042.20 ▼3.7841.17 ▼113.8594.85 ▼11.84
Posts /wp-admin/edit.php2,755 ▲163.20 ▲0.4875.99 ▲5.9387.97 ▼8.59
Add New Post /wp-admin/post-new.php1,627 ▲2822.28 ▲3.45308.96 ▼123.76110.05 ▲6.01
Media Library /wp-admin/upload.php1,749 ▲165.28 ▲0.27159.49 ▼12.63118.19 ▼29.45
Funsite plugins /wp-admin/plugins.php?page=funsite_plugins1,0772.0953.0958.98
My Plugins /wp-admin/plugins.php?page=plugins_scores_settings1,0452.3354.4963.63

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
    • > Warning in wp-content/plugins/plugin-scores/plugin_scores-plugin.php+20
    Declaration of plugin_scores_class::pluginInfoRight($info) should be compatible with basic_plugin_class::pluginInfoRight($info, $added = false)
  • Zombie WordPress options were found after uninstall: 1 option
    • recovery_mode_email_last_sent

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=plugins_scores_settings
    • > Warning in wp-content/plugins/plugin-scores/plugin_scores-plugin.php+20
    Declaration of plugin_scores_class::pluginInfoRight($info) should be compatible with basic_plugin_class::pluginInfoRight($info, $added = false)

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === plugin-scores === )
You can take inspiration from this readme.txt

plugin-scores/plugin_scores.php 85% from 13 tests

This is the main PHP file of "plugin scores" version 1.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("plugin-scores.php" instead of "plugin_scores.php")

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
No dangerous file extensions were detected263 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP24533137
CSS216076
PO File1132644
JavaScript1006

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
basics/icon-128x128.png7.30KB3.59KB▼ 50.77%