Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.35MB] [CPU: ▼6.41ms] Passed 4 tests
Analyzing server-side resources used by Simplified Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 37.80 ▲0.08 |
Dashboard /wp-admin | 3.68 ▲0.34 | 47.05 ▼12.51 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 49.93 ▲6.07 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.32 | 83.40 ▼15.65 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 37.75 ▲2.44 |
Simplified /wp-admin/options-general.php?page=simplifiedplugin | 3.55 | 37.05 |
Server storage [IO: ▲1.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 215 new files
Database: no new tables, 7 new options
New WordPress options |
---|
simplifiedplugin-version |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Simplified Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.72 ▲0.37 | 1.78 ▲0.17 | 40.74 ▲0.56 |
Dashboard /wp-admin | 2,196 ▲24 | 5.50 ▼0.18 | 84.78 ▼15.47 | 37.92 ▼1.91 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 1.99 ▲0.03 | 37.43 ▲2.00 | 33.10 ▼0.34 |
Add New Post /wp-admin/post-new.php | 1,529 ▼3 | 23.14 ▲0.29 | 668.49 ▲44.71 | 52.68 ▲1.97 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.24 ▲0.08 | 104.39 ▼3.93 | 47.74 ▲1.91 |
Simplified /wp-admin/options-general.php?page=simplifiedplugin | 879 | 2.00 | 24.70 | 26.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- simplifiedplugin-version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/simplified/vendor/micropackage/requirements/tests/bootstrap.php
- > /wp-content/plugins/simplified/simplifiedplugin.php
- 133× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Simplified_Plugin\\Engine\\Base' not found in wp-content/plugins/simplified/ajax/Ajax.php:19
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/simplified/vendor/composer/installers/src/Composer/Installers/ProcessWireInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/simplified/vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/simplified/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/simplified/vendor/micropackage/requirements/tests/Abstracts/test-checker.php:16
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/simplified/vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/simplified/vendor/composer/installers/src/Composer/Installers/MantisBTInstaller.php:6
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/simplified/vendor/composer/installers/src/Composer/Installers/ItopInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/simplified/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/simplified/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php:4
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (`/assets/screen-1.png`)
simplified/simplifiedplugin.php 77% from 13 tests
This is the main PHP file of "Simplified Plugin" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simplified.php" instead of "simplifiedplugin.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
Everything looks great! No dangerous files found in this plugin6,049 lines of code in 185 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 161 | 1,157 | 2,052 | 4,782 |
JSON | 8 | 0 | 0 | 727 |
Markdown | 5 | 91 | 0 | 191 |
YAML | 3 | 31 | 3 | 123 |
Bourne Shell | 1 | 21 | 11 | 120 |
XML | 2 | 4 | 3 | 56 |
PO File | 1 | 9 | 11 | 46 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 3.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 141 | |
▷ Abstract classes | 2 | 1.42% |
▷ Concrete classes | 139 | 98.58% |
▷ Final classes | 0 | 0.00% |
Methods | 304 | |
▷ Static methods | 31 | 10.20% |
▷ Public methods | 242 | 79.61% |
▷ Protected methods | 35 | 11.51% |
▷ Private methods | 27 | 8.88% |
Functions | 27 | |
▷ Named functions | 8 | 29.63% |
▷ Anonymous functions | 19 | 70.37% |
Constants | 23 | |
▷ Global constants | 7 | 30.43% |
▷ Class constants | 16 | 69.57% |
▷ Public constants | 15 | 93.75% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.72MB with 0.46MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screen-1.png | 32.92KB | 13.17KB | ▼ 60.01% |
assets/icon-256x256.png | 2.18KB | 0.88KB | ▼ 59.95% |
assets/banner-1544x500.png | 532.21KB | 164.71KB | ▼ 69.05% |
assets/banner-772x250.png | 171.79KB | 54.92KB | ▼ 68.03% |