Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.20MB] [CPU: ▼4.39ms] Passed 4 tests
Server-side resources used by Jarvis
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 38.23 ▼11.06 |
Dashboard /wp-admin | 3.56 ▲0.25 | 51.31 ▲5.40 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 49.78 ▼3.40 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 86.58 ▼8.49 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 42.85 ▲7.60 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 157 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Jarvis
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,007 ▲246 | 14.98 ▲0.40 | 1.72 ▲0.01 | 41.54 ▼2.33 |
Dashboard /wp-admin | 2,410 ▲229 | 6.07 ▲0.46 | 100.49 ▼10.95 | 39.55 ▼0.98 |
Posts /wp-admin/edit.php | 2,321 ▲221 | 3.37 ▲1.37 | 48.59 ▲9.12 | 35.23 ▼1.20 |
Add New Post /wp-admin/post-new.php | 1,554 ▲26 | 23.36 ▲0.45 | 682.60 ▼25.55 | 52.92 ▼6.59 |
Media Library /wp-admin/upload.php | 1,615 ▲212 | 5.29 ▲1.08 | 107.88 ▲11.77 | 43.04 ▼4.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
- 16× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Jarvis\\Suggestions\\Action' not found in wp-content/plugins/jarvis/src/Suggestions/FlushRewriteRules.php:5
- > PHP Fatal error
Uncaught Error: Class 'Jarvis\\Models\\Model' not found in wp-content/plugins/jarvis/src/php/models/comment.php:5
- > PHP Fatal error
Uncaught Error: Class 'Jarvis\\Suggestions\\Action' not found in wp-content/plugins/jarvis/src/php/suggestions/flush-rewrite-rules.php:5
- > PHP Fatal error
Uncaught Error: Class 'Jarvis\\Suggestions\\Action' not found in wp-content/plugins/jarvis/src/Suggestions/Search.php:5
- > PHP Fatal error
Uncaught Error: Class 'Jarvis\\Models\\Model' not found in wp-content/plugins/jarvis/src/Models/Post.php:5
- > PHP Fatal error
Uncaught Error: Class 'Jarvis\\Models\\Model' not found in wp-content/plugins/jarvis/src/php/models/menu.php:5
- > PHP Fatal error
Uncaught Error: Class 'Jarvis\\Models\\Model' not found in wp-content/plugins/jarvis/src/Models/User.php:5
- > PHP Fatal error
Uncaught Error: Class 'Jarvis\\Models\\Model' not found in wp-content/plugins/jarvis/src/php/models/post.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function Jarvis\\plugins_url() in wp-content/plugins/jarvis/jarvis.php:18
- > PHP Fatal error
Uncaught Error: Class 'Jarvis\\Models\\Model' not found in wp-content/plugins/jarvis/src/Models/Action.php:5
- > 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 Passed 29 tests
readme.txt Passed 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
9 plugin tags: menu, launchbar, search, wordpress, pages...
jarvis/jarvis.php Passed 13 tests
"Jarvis" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
78 characters long description:
Jarvis is your administration assistant, putting WordPress at your fingertips.
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 plugin17,410 lines of code in 137 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 59 | 2,312 | 583 | 12,392 |
PHP | 37 | 465 | 954 | 1,828 |
CSS | 13 | 216 | 87 | 1,025 |
Markdown | 6 | 346 | 0 | 1,010 |
Sass | 13 | 71 | 2 | 525 |
HTML | 2 | 47 | 0 | 407 |
JSON | 6 | 0 | 0 | 213 |
Bourne Again Shell | 1 | 1 | 1 | 10 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 2 | 6.45% |
▷ Concrete classes | 29 | 93.55% |
▷ Final classes | 0 | 0.00% |
Methods | 104 | |
▷ Static methods | 21 | 20.19% |
▷ Public methods | 91 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 12.50% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected