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.01MB] [CPU: ▼1.89ms] Passed 4 tests
A check of server-side resources used by Special Admin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.45 ▲1.88 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.10 ▼1.08 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.46 ▼3.87 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 99.13 ▲1.54 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.99 ▼4.13 |
Special Admin /wp-admin/options-general.php?page=special-admin | 3.18 | 28.86 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Special Admin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.36 ▼0.94 | 4.77 ▲2.61 | 44.97 ▼3.44 |
Dashboard /wp-admin | 2,210 ▲25 | 5.77 ▼0.09 | 99.79 ▼10.81 | 41.21 ▼3.49 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▲0.02 | 38.71 ▼1.11 | 37.08 ▼0.42 |
Add New Post /wp-admin/post-new.php | 1,523 ▼10 | 23.18 ▼0.12 | 675.56 ▼24.64 | 67.08 ▲8.10 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.20 ▲0.00 | 101.86 ▼10.01 | 41.18 ▼5.49 |
Special Admin /wp-admin/options-general.php?page=special-admin | 662 | 1.35 | 6.93 | 15.24 |
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 did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/special-admins/special-admins.php on line 417
- > PHP Notice
Undefined variable: argv in wp-content/plugins/special-admins/special-admins.php on line 417
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: The plugin tags were not defined
special-admins/special-admins.php 92% from 13 tests
Analyzing the main PHP file in "Special Admin" version 0.1.0
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
There were no executable files found in this plugin434 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 46 | 84 | 297 |
JavaScript | 2 | 16 | 53 | 102 |
JSON | 1 | 0 | 0 | 25 |
Markdown | 5 | 5 | 0 | 10 |
CSS | 1 | 0 | 7 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 48.00 |
▷ Minimum class complexity | 48.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 2 | 12.50% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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 files were detected