Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼5.35ms] Passed 4 tests
This is a short check of server-side resources used by Usher
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.15 ▼5.11 |
Dashboard /wp-admin | 3.49 ▲0.19 | 44.10 ▼4.74 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 49.86 ▼0.55 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 91.11 ▼10.99 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 36.83 ▲2.53 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Usher
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲148 | 14.08 ▼0.22 | 1.90 ▼0.21 | 43.40 ▼1.12 |
Dashboard /wp-admin | 2,311 ▲123 | 5.60 ▼0.30 | 124.17 ▲5.80 | 43.29 ▼0.62 |
Posts /wp-admin/edit.php | 2,202 ▲113 | 2.53 ▲0.48 | 58.85 ▲19.50 | 33.70 ▲0.49 |
Add New Post /wp-admin/post-new.php | 1,591 ▲70 | 23.87 ▲0.67 | 614.82 ▼49.45 | 36.66 ▼27.27 |
Media Library /wp-admin/upload.php | 1,493 ▲105 | 4.97 ▲0.74 | 107.76 ▲0.94 | 41.36 ▼1.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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
The following issues need your attention
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Usher\\Util\\Registry' not found in wp-content/plugins/usher/includes/components/class-shortcut-registry.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Usher\\Core\\Interfaces\\Loader' not found in wp-content/plugins/usher/includes/core/class-shortcuts.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Usher\\Core\\Interfaces\\Loader' not found in wp-content/plugins/usher/includes/core/class-assets.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Usher\\Core\\Interfaces\\Loader' not found in wp-content/plugins/usher/includes/core/class-render-dialog.php:20
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: shortcuts, navigation, admin, keyboard
usher/usher.php 92% from 13 tests
The principal PHP file in "Usher" v. 1.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,078 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 181 | 634 | 561 |
JavaScript | 4 | 135 | 484 | 493 |
Markdown | 1 | 7 | 0 | 24 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 6.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 2 | 33.33% |
Methods | 51 | |
▷ Static methods | 3 | 5.88% |
▷ Public methods | 34 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 33.33% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected