Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.20ms] Passed 4 tests
A check of server-side resources used by Otis - Your digital marketing assistant
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.52 ▼2.18 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.69 ▼14.58 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.59 ▼2.90 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.47 ▼9.12 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.07 ▲6.49 |
Server storage [IO: ▲2.94MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Otis - Your digital marketing assistant
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.28 ▼0.07 | 1.78 ▲0.28 | 40.84 ▲0.05 |
Dashboard /wp-admin | 2,198 ▲17 | 5.58 ▼0.07 | 83.75 ▼16.16 | 41.86 ▲1.05 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.00 | 33.53 ▼2.08 | 36.17 ▲0.21 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 22.99 ▼0.06 | 642.21 ▲25.58 | 56.21 ▼14.97 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.21 ▼0.05 | 109.75 ▲4.28 | 47.04 ▼2.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'OtisAI\\options\\OtisAIOptions' not found in wp-content/plugins/otisai/src/options/class-accountoptions.php:10
- > PHP Fatal error
Uncaught Error: Class 'OtisAI\\wp\\Options' not found in wp-content/plugins/otisai/src/options/class-otisaioptions.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: campaigns, digital marketing, analytics
otisai/otisai.php Passed 13 tests
This is the main PHP file of "Otis - Your digital marketing assistant" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
86 characters long description:
Launch data-driven digital ad campaigns on Facebook, Instagram and Google in 5 minutes
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 plugin44,758 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 40,409 | 26,923 | 42,371 |
JSON | 2 | 1 | 0 | 2,290 |
CSS | 2 | 11 | 0 | 83 |
XML | 1 | 4 | 3 | 14 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 6.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 117 | |
▷ Static methods | 79 | 67.52% |
▷ Public methods | 102 | 87.18% |
▷ Protected methods | 1 | 0.85% |
▷ Private methods | 14 | 11.97% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 21 | |
▷ Global constants | 7 | 33.33% |
▷ Class constants | 14 | 66.67% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.36MB with 0.14MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/otis-icon.png | 371.62KB | 231.19KB | ▼ 37.79% |