Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▲9.36ms] Passed 4 tests
This is a short check of server-side resources used by Slash Admin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 47.54 ▼0.62 |
Dashboard /wp-admin | 3.54 ▲0.20 | 66.70 ▲4.77 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 73.91 ▲18.10 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 121.52 ▲18.58 |
Media Library /wp-admin/upload.php | 3.47 ▲0.25 | 53.71 ▲15.17 |
Slash Admin /wp-admin/tools.php?page=slashadmin-options | 3.47 | 54.32 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
slashadmin_options |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Slash Admin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲61 | 14.74 ▲0.56 | 1.91 ▼0.79 | 44.73 ▼8.28 |
Dashboard /wp-admin | 2,210 ▲22 | 5.83 ▼0.04 | 108.49 ▼5.85 | 40.97 ▼1.02 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▲0.01 | 41.86 ▲0.50 | 36.07 ▼1.85 |
Add New Post /wp-admin/post-new.php | 1,517 ▼25 | 17.57 ▼0.83 | 641.99 ▼18.58 | 65.64 ▲6.08 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.19 ▼0.01 | 97.07 ▼17.53 | 46.26 ▼2.61 |
Slash Admin /wp-admin/tools.php?page=slashadmin-options | 2,683 | 3.36 | 70.95 | 64.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slash-admin/inc/acf-mods.php:13
- > PHP Fatal error
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 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 21 tag instead of maximum 10
slash-admin/slashadmin.php 85% from 13 tests
"Slash Admin" version 3.8.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 197 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("slash-admin.php" instead of "slashadmin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected4,489 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 602 | 661 | 3,061 |
PO File | 1 | 288 | 440 | 1,159 |
CSS | 1 | 7 | 0 | 231 |
JavaScript | 2 | 9 | 8 | 38 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 17.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 22 | 25.88% |
▷ Public methods | 70 | 82.35% |
▷ Protected methods | 2 | 2.35% |
▷ Private methods | 13 | 15.29% |
Functions | 68 | |
▷ Named functions | 65 | 95.59% |
▷ Anonymous functions | 3 | 4.41% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin