Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼1.21ms] Passed 4 tests
This is a short check of server-side resources used by Icons for Plugins - TxToIT
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 39.24 ▼2.65 |
Dashboard /wp-admin | 3.64 ▲0.34 | 50.58 ▲1.51 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 54.98 ▲4.85 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 87.27 ▼3.72 |
Media Library /wp-admin/upload.php | 3.47 ▲0.25 | 37.62 ▲0.04 |
Plugins icons /wp-admin/options-general.php?page=txtoit-icons-for-plugins | 3.47 | 37.72 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 149 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
ifp_general |
Browser metrics Passed 4 tests
A check of browser resources used by Icons for Plugins - TxToIT
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲201 | 15.23 ▲0.87 | 1.71 ▼0.38 | 38.73 ▼7.97 |
Dashboard /wp-admin | 2,367 ▲182 | 6.64 ▲1.71 | 132.88 ▲27.07 | 41.55 ▼1.69 |
Posts /wp-admin/edit.php | 2,276 ▲187 | 3.60 ▲1.54 | 55.95 ▲15.60 | 35.57 ▲0.92 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.59 ▲5.27 | 609.17 ▼14.53 | 34.88 ▼19.03 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.32 ▲0.05 | 81.76 ▼14.91 | 42.52 ▲0.65 |
Plugins icons /wp-admin/options-general.php?page=txtoit-icons-for-plugins | 1,133 | 3.41 | 46.61 | 26.39 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- ifp_general
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 103× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/txtoit-icons-for-plugins/vendor/composer/installers/src/Composer/Installers/ChefInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/txtoit-icons-for-plugins/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\Test\\TestCase' not found in wp-content/plugins/txtoit-icons-for-plugins/vendor/composer/installers/tests/Composer/Installers/Test/GravInstallerTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/txtoit-icons-for-plugins/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/txtoit-icons-for-plugins/vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/txtoit-icons-for-plugins/vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/txtoit-icons-for-plugins/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/txtoit-icons-for-plugins/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php:12
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/txtoit-icons-for-plugins/vendor/composer/installers/src/Composer/Installers/MauticInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\Test\\TestCase' not found in wp-content/plugins/txtoit-icons-for-plugins/vendor/composer/installers/tests/Composer/Installers/Test/YawikInstallerTest.php:14
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 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
7 plugin tags: list, dashboard, admin, plugins, page...
txtoit-icons-for-plugins/txtoit-icons-for-plugins.php Passed 13 tests
The main PHP script in "Icons for Plugins - TxToIT" version 1.0.6 is automatically included on every request by WordPress
36 characters long description:
Displays icons for WordPress plugins
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected5,292 lines of code in 136 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 122 | 786 | 1,275 | 4,468 |
Markdown | 5 | 97 | 0 | 400 |
JSON | 5 | 0 | 0 | 367 |
XML | 2 | 3 | 0 | 31 |
YAML | 2 | 7 | 0 | 26 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 3.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 114 | |
▷ Abstract classes | 2 | 1.75% |
▷ Concrete classes | 112 | 98.25% |
▷ Final classes | 0 | 0.00% |
Methods | 241 | |
▷ Static methods | 31 | 12.86% |
▷ Public methods | 193 | 80.08% |
▷ Protected methods | 36 | 14.94% |
▷ Private methods | 12 | 4.98% |
Functions | 7 | |
▷ Named functions | 2 | 28.57% |
▷ Anonymous functions | 5 | 71.43% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 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.38MB with 0.27MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/tareq1988/wordpress-settings-api-class/screenshot-1.png | 389.59KB | 115.93KB | ▼ 70.24% |