Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/plugincheck/DbHelper.php+228
Function get_magic_quotes_gpc() is deprecated
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.12ms] Passed 4 tests
A check of server-side resources used by Plugin Check
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.54 ▲2.11 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.72 ▼1.28 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 44.99 ▼2.84 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 104.75 ▲14.16 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 29.05 ▼6.46 |
Server storage [IO: ▲1.99MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 107 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_plg_administrator |
wp_plg_options_meta |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
plugincheck |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Plugin Check
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.28 ▼1.16 | 4.49 ▲2.67 | 42.28 ▼2.72 |
Dashboard /wp-admin | 2,213 ▲25 | 5.83 ▲0.94 | 98.68 ▼7.71 | 38.94 ▼3.45 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.01 | 37.85 ▲0.87 | 36.28 ▼0.42 |
Add New Post /wp-admin/post-new.php | 1,536 ▼11 | 23.14 ▲4.94 | 617.41 ▼38.93 | 54.24 ▼4.01 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.24 ▲0.05 | 95.63 ▼3.24 | 40.30 ▼1.98 |
Plugin Check Lite /wp-admin/plugin-check.php | 26 | 0.44 | 0.09 | 12.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure failed, leaving 2 tables in the database
- wp_plg_options_meta
- wp_plg_administrator
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 25% 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 0% 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
Almost there! Just fix the following items
- 23× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/plugincheck/admin/compile-app.php
- > /wp-content/plugins/plugincheck/admin/profile.php
- > /wp-content/plugins/plugincheck/admin/ajax/options.php
- > /wp-content/plugins/plugincheck/admin/ajax/success.php
- > /wp-content/plugins/plugincheck/admin/compile-plugin.php
- > /wp-content/plugins/plugincheck/admin/ajax/update.php
- > /wp-content/plugins/plugincheck/admin/promo.php
- > /wp-content/plugins/plugincheck/admin/reinstall.php
- > /wp-content/plugins/plugincheck/admin/dbSetup.php
- > /wp-content/plugins/plugincheck/admin/compile-automated.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function menuShown() in wp-content/plugins/plugincheck/admin/intro.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/plugincheck/EzPlugin.php:386
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/plugincheck/EzPlugin.php:386
- > PHP Fatal error
Uncaught Error: Class 'EZ' not found in wp-content/plugins/plugincheck/admin/tour.php:2
- > PHP Fatal error
Uncaught Error: Class 'EZ' not found in wp-content/plugins/plugincheck/admin/support.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/plugincheck/admin/options-compile.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/plugincheck/admin/options-default.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function renderFooter() in wp-content/plugins/plugincheck/admin/footer.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/plugin-check.php
- > Network (severe)
wp-admin/plugin-check.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
- Screenshots: Add images for these screenshots: #1 (Plugin Check admin page, with quick start, help and support info.), #2 (Plugin Check - how to launch it.), #3 (Plugin Check output.), #4 (App Check launch page.), #5 (Automated Checks launch page.), #6 (Advanced Options in the Pro version showing a dark theme.)
plugincheck/plugin-check.php 92% from 13 tests
This is the main PHP file of "Plugin Check" version 3.00, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("plugincheck.php" instead of "plugin-check.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 detected9,863 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 49 | 691 | 604 | 6,489 |
CSS | 8 | 208 | 96 | 1,421 |
JavaScript | 11 | 99 | 95 | 1,189 |
SVG | 2 | 0 | 0 | 749 |
SQL | 1 | 2 | 0 | 15 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 40.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 157.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 1 | 6.25% |
▷ Concrete classes | 15 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 264 | |
▷ Static methods | 87 | 32.95% |
▷ Public methods | 246 | 93.18% |
▷ Protected methods | 12 | 4.55% |
▷ Private methods | 6 | 2.27% |
Functions | 43 | |
▷ Named functions | 43 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 2 | 25.00% |
▷ Class constants | 6 | 75.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
20 PNG files occupy 0.40MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 71.34KB | 75.16KB | 0.00% |
admin/img/uploadify-cancel.png | 2.89KB | 0.21KB | ▼ 92.67% |
admin/img/sort_asc.png | 1.09KB | 0.25KB | ▼ 77.46% |
admin/img/star-half.png | 0.65KB | 0.65KB | 0.00% |
admin/img/spritemap.png | 9.97KB | 9.37KB | ▼ 5.99% |