Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/asimov/includes/class-asimov-loader.php+152
Undefined index: timestamp
Server metrics [RAM: ▼0.50MB] [CPU: ▼29.10ms] 75% from 4 tests
An overview of server-side resources used by Asimov
The following require your attention
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,337.88ms on /wp-admin/admin.php?page=asimov-plugin-wizard)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 43.23 ▲2.28 |
Dashboard /wp-admin | 3.40 ▲0.10 | 30.74 ▼26.99 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 38.00 ▼11.66 |
Add New Post /wp-admin/post-new.php | 3.47 ▼2.42 | 36.67 ▼76.98 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 35.25 ▼0.78 |
Wizard /wp-admin/admin.php?page=asimov-plugin-wizard | 3.60 | 1,337.88 |
Server storage [IO: ▲6.85MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 112 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Asimov
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲172 | 13.63 ▼0.62 | 8.32 ▲6.66 | 28.38 ▼25.07 |
Dashboard /wp-admin | 2,256 ▲53 | 5.12 ▲0.23 | 105.65 ▼7.27 | 43.51 ▲0.95 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.51 ▲0.49 | 38.29 ▲0.72 | 40.56 ▲6.16 |
Add New Post /wp-admin/post-new.php | 6,285 ▲4,759 | 26.14 ▲8.59 | 828.30 ▲193.37 | 49.13 ▼7.73 |
Media Library /wp-admin/upload.php | 1,436 ▲39 | 4.34 ▲0.10 | 94.01 ▼24.53 | 54.75 ▲2.02 |
Wizard /wp-admin/admin.php?page=asimov-plugin-wizard | 4,045 | 38.35 | 1,073.99 | 47.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 25% 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 0% 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
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/asimov/public/partials/asimov-plugin-public-display.php
- > /wp-content/plugins/asimov/admin/partials/asimov-plugin-admin-display.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/asimov/admin/partials/asimov-plugin-admin-settings-stepper.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/asimov/admin/partials/asimov-plugin-admin-editor-recsys.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/asimov/admin/partials/asimov-plugin-admin-settings-display.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/asimov/includes/vars.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=asimov-plugin-wizard
- > Other (warning) in unknown
/wp-admin/admin.php?page=asimov-plugin-wizard 265 Unrecognized feature: 'web-share'.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: writing, automation, advice, ai
asimov/asimov-plugin.php 85% from 13 tests
The main PHP script in "Asimov" version 1.1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- 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
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("asimov.php" instead of "asimov-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin25,780 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 0 | 12,217 |
CSS | 8 | 1,613 | 53 | 6,320 |
PHP | 17 | 254 | 641 | 1,858 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
PO File | 2 | 323 | 416 | 997 |
JavaScript | 5 | 133 | 108 | 862 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 6.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 2 | 3.64% |
▷ Public methods | 49 | 89.09% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 10.91% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
20 PNG files occupy 1.14MB with 0.61MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/asimov_ok@1x.png | 57.99KB | 20.47KB | ▼ 64.71% |
admin/images/service_account@2x.png | 58.71KB | 28.01KB | ▼ 52.30% |
admin/images/asimov_notok@1x.png | 61.48KB | 20.85KB | ▼ 66.09% |
admin/images/logo_nero_asimov@3x.png | 36.20KB | 17.55KB | ▼ 51.51% |
admin/images/asimov_video_analytics.png | 42.26KB | 27.28KB | ▼ 35.45% |