Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.59MB] [CPU: ▲1.78ms] Passed 4 tests
A check of server-side resources used by Acme Demo Setup
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.58 | 44.12 ▲9.82 |
Dashboard /wp-admin | 3.90 ▲0.59 | 52.66 ▲9.62 |
Posts /wp-admin/edit.php | 4.01 ▲0.65 | 48.81 ▲4.59 |
Add New Post /wp-admin/post-new.php | 6.49 ▲0.59 | 83.38 ▼14.20 |
Media Library /wp-admin/upload.php | 3.82 ▲0.59 | 37.99 ▲7.12 |
Server storage [IO: ▲35.83MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- The filesystem usage should be lower than 25MB (currently using 35.83MB)
Filesystem: 404 new files
Database: no new tables, 7 new options
New WordPress options |
---|
__acme_demo_setup_do_redirect |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Acme Demo Setup
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.36 ▼0.30 | 1.72 ▲0.17 | 44.67 ▲8.19 |
Dashboard /wp-admin | 2,211 ▲33 | 5.63 ▼0.08 | 96.28 ▼2.49 | 43.76 ▲1.68 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 2.03 ▲0.05 | 36.37 ▼0.13 | 32.65 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,542 ▲5 | 23.14 ▲4.99 | 669.97 ▲66.12 | 53.55 ▼12.65 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.20 ▲0.03 | 109.80 ▲0.12 | 45.43 ▼3.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- __acme_demo_setup_do_redirect
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/acme-demo-setup/acme-demo-setup.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues 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
These attributes need your attention:
- Screenshots: Screenshot #1 (Acme Demo Setup) image missing
- Tested up to: Version not formatted correctly
acme-demo-setup/acme-demo-setup.php 92% from 13 tests
Analyzing the main PHP file in "Acme Demo Setup" version 2.0.8
You should first fix the following items:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin4,067 lines of code in 303 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 143 | 606 | 3,696 |
JSON | 292 | 0 | 0 | 292 |
CSS | 1 | 5 | 0 | 56 |
JavaScript | 1 | 5 | 5 | 23 |
PHP code Passed 2 tests
An overview of 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.34 |
Average class complexity | 6.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 6 | 18.18% |
▷ Public methods | 29 | 87.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 12.12% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin