Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼261.93ms] Passed 4 tests
Analyzing server-side resources used by WPO Checker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 36.53 ▲12.50 |
Dashboard /wp-admin | 3.16 ▲0.11 | 51.38 ▲5.97 |
Posts /wp-admin/edit.php | 3.30 ▲0.19 | 49.55 ▲0.40 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.09 | 96.36 ▼1,049.70 |
Media Library /wp-admin/upload.php | 3.10 ▲0.09 | 38.40 ▼4.40 |
WPO Checker /wp-admin/options-general.php?page=sites_selection_page | 3.14 | 31.18 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPO Checker
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,677 ▲72 | 15.76 ▲0.27 | 8.64 ▼0.74 | 44.71 ▼4.95 |
Dashboard /wp-admin | 2,938 ▲85 | 5.90 ▲0.06 | 145.59 ▲3.26 | 99.51 ▲5.32 |
Posts /wp-admin/edit.php | 2,711 ▲5 | 2.69 ▲0.01 | 67.96 ▼8.81 | 89.18 ▲1.91 |
Add New Post /wp-admin/post-new.php | 1,659 ▲3 | 16.85 ▼1.58 | 382.78 ▼16.50 | 107.90 ▼13.26 |
Media Library /wp-admin/upload.php | 1,780 ▲8 | 5.02 ▼0.01 | 153.64 ▼4.61 | 107.35 ▼8.90 |
WPO Checker /wp-admin/options-general.php?page=sites_selection_page | 1,339 | 2.21 | 65.24 | 56.54 |
Uninstaller [IO: ▲0.08MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following itemsThis plugin does not fully uninstall, leaving 1 option in the database
- Uninstall procedure validation failed for this plugin
- > Compile error in wp-content/plugins/wpo-checker/src/class-plugin.php+23
Cannot declare class Trasweb\Plugins\WpoChecker\Plugin, because the name is already in use
- The plugin did not uninstall correctly, leaving 29 files (0.08MB) in the plugin directory
- (new file) config/services.php
- (new file) src/Collections/class-sites.php
- (new file) config/hooks.php
- (new file) config/index.php
- (new file) src/Entities/class-site.php
- (new file) readme.txt
- (new file) config/sites.ini
- (new file) src/Framework/class-autoload.php
- (new file) LICENSE
- (new file) index.php
- ...
- recovery_mode_email_last_sent
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wpo-checker/wpo-checker.php
- > /wp-content/plugins/wpo-checker/index.php
- > /wp-content/plugins/wpo-checker/uninstall.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Trasweb\\Plugins\\WpoChecker\\Framework\\Service' not found in wp-content/plugins/wpo-checker/config/services.php:12
- > PHP Fatal error
Uncaught Error: Class 'Trasweb\\Plugins\\WpoChecker\\Framework\\Hook' not found in wp-content/plugins/wpo-checker/config/hooks.php:15
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: webperformance, wpo, webperf
wpo-checker/wpo-checker.php 85% from 13 tests
Analyzing the main PHP file in "WPO Checker" version 0.3
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected935 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 254 | 604 | 884 |
INI | 1 | 7 | 0 | 51 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 5 | 33.33% |
Methods | 73 | |
▷ Static methods | 8 | 10.96% |
▷ Public methods | 42 | 57.53% |
▷ Protected methods | 1 | 1.37% |
▷ Private methods | 30 | 41.10% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 36 | |
▷ Global constants | 5 | 13.89% |
▷ Class constants | 31 | 86.11% |
▷ Public constants | 16 | 51.61% |
Plugin size Passed 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin