Benchmarks
Plugin footprint 82% 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.32MB] [CPU: ▼2.18ms] 75% from 4 tests
This is a short check of server-side resources used by ZMOOZ Web Stories
Please fix the following
- CPU: Total CPU usage must kept under 500.00ms (currently 675.35ms on /wp-admin/edit.php?post_type=stories&page=zmooz-stories-dashboard)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 38.72 ▼2.89 |
Dashboard /wp-admin | 3.61 ▲0.31 | 48.43 ▼6.68 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 50.24 ▼1.80 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 90.58 ▲2.67 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 43.60 ▲10.06 |
Zmooz /wp-admin/options-general.php?page=zmooz_custom_plugin_settings_group | 3.50 | 34.71 |
Dashboard /wp-admin/edit.php?post_type=stories&page=zmooz-stories-dashboard | 3.55 | 675.35 |
Story categories /wp-admin/edit-tags.php?taxonomy=storycategory&post_type=stories | 3.53 | 34.17 |
All stories /wp-admin/edit.php?post_type=stories | 3.58 | 38.56 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
It is recommended to fix the following issues
- You have illegally modified 3 files (14.44KB) outside of "wp-content/plugins/zmooz-stories/" and "wp-content/uploads/"
- (new file) wp-content/themes/twentytwentyone/single-stories.php
- (new file) wp-content/themes/twentytwentyone/zmooz_stories_style.css
- (new file) wp-content/themes/twentytwentyone/archive-stories.php
Filesystem: 66 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for ZMOOZ Web Stories
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲123 | 13.66 ▼0.94 | 1.94 ▲0.28 | 40.67 ▲3.53 |
Dashboard /wp-admin | 2,234 ▲46 | 5.86 ▲1.02 | 99.45 ▼1.84 | 75.80 ▲32.72 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.01 ▼0.01 | 35.51 ▼4.61 | 31.38 ▼4.75 |
Add New Post /wp-admin/post-new.php | 1,694 ▲160 | 22.38 ▼0.87 | 668.10 ▼9.45 | 41.99 ▼14.87 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.18 ▼0.01 | 94.49 ▼5.57 | 75.63 ▲32.04 |
Zmooz /wp-admin/options-general.php?page=zmooz_custom_plugin_settings_group | 835 | 2.01 | 24.52 | 25.72 |
Dashboard /wp-admin/edit.php?post_type=stories&page=zmooz-stories-dashboard | 957 | 2.02 | 23.55 | 32.24 |
Story categories /wp-admin/edit-tags.php?taxonomy=storycategory&post_type=stories | 1,293 | 2.14 | 24.51 | 26.68 |
All stories /wp-admin/edit.php?post_type=stories | 1,174 | 2.04 | 38.23 | 33.32 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/zmooz-stories/admin/auth.php:2
- > PHP Notice
Undefined variable: storiesList in wp-content/plugins/zmooz-stories/admin/zmooz_wp_plugin_admin.php on line 99
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/zmooz-stories/zmooz_wp_plugin.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/zmooz-stories/admin/zmooz_wp_plugin_admin.php:109
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: 0986, 0981, 0985, 0982, 098...
zmooz-stories/zmooz_wp_plugin.php 77% from 13 tests
Analyzing the main PHP file in "ZMOOZ Web Stories" version 0.9.8.7
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("zmooz-stories.php" instead of "zmooz_wp_plugin.php")
- Text Domain: The text domain should only use lowercase characters and dashes
- Description: A good plugin description is longer than 10 characters (currently 6 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin2,151 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 435 | 187 | 2,151 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 82.50 |
▷ Minimum class complexity | 50.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 3.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 50 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
41 PNG files occupy 0.62MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/stickers/live_layer_black_montserrat_extra_bold_straight.png | 3.86KB | 3.81KB | ▼ 1.34% |
images/stickers/new_post_apice_straight.png | 4.79KB | 5.09KB | 0.00% |
admin/assets/favvertical.png | 6.84KB | 1.37KB | ▼ 79.99% |
images/stickers/green_star.png | 1.44KB | 0.40KB | ▼ 72.46% |
images/stickers/live_red_dot_montserrat_extra_bold_straight.png | 3.37KB | 3.28KB | ▼ 2.84% |