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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.83 ▼0.89 | 6.70 ▼14.39 |
Dashboard /wp-admin | 1.85 ▼1.21 | 5.22 ▼49.62 |
Posts /wp-admin/edit.php | 1.85 ▼1.26 | 6.29 ▼39.66 |
Add New Post /wp-admin/post-new.php | 1.85 ▼3.59 | 7.28 ▼768.09 |
Media Library /wp-admin/upload.php | 1.85 ▼1.16 | 4.80 ▼36.24 |
Funsite plugins /wp-admin/plugins.php?page=funsite_plugins | 1.86 | 7.37 |
My Plugins /wp-admin/plugins.php?page=plugins_scores_settings | 1.86 | 4.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,770 ▼826 | 13.86 ▼2.00 | 9.62 ▼1.35 | 53.65 ▲4.27 |
Dashboard /wp-admin | 2,030 ▼904 | 2.20 ▼3.78 | 41.17 ▼113.85 | 94.85 ▼11.84 |
Posts /wp-admin/edit.php | 2,755 ▲16 | 3.20 ▲0.48 | 75.99 ▲5.93 | 87.97 ▼8.59 |
Add New Post /wp-admin/post-new.php | 1,627 ▲28 | 22.28 ▲3.45 | 308.96 ▼123.76 | 110.05 ▲6.01 |
Media Library /wp-admin/upload.php | 1,749 ▲16 | 5.28 ▲0.27 | 159.49 ▼12.63 | 118.19 ▼29.45 |
Funsite plugins /wp-admin/plugins.php?page=funsite_plugins | 1,077 | 2.09 | 53.09 | 58.98 |
My Plugins /wp-admin/plugins.php?page=plugins_scores_settings | 1,045 | 2.33 | 54.49 | 63.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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 45 | 33 | 137 |
CSS | 2 | 16 | 0 | 76 |
PO File | 1 | 13 | 26 | 44 |
JavaScript | 1 | 0 | 0 | 6 |
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 code | 0.15 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
basics/icon-128x128.png | 7.30KB | 3.59KB | ▼ 50.77% |