Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.89MB] [CPU: ▼183.50ms] Passed 4 tests
An overview of server-side resources used by AMP Stories for WordPress - by Ztorie
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.74 ▼1.09 | 4.86 ▼30.73 |
Dashboard /wp-admin | 1.76 ▼1.29 | 5.95 ▼38.14 |
Posts /wp-admin/edit.php | 1.76 ▼1.34 | 4.73 ▼36.01 |
Add New Post /wp-admin/post-new.php | 1.76 ▼3.67 | 4.87 ▼626.96 |
Media Library /wp-admin/upload.php | 1.76 ▼1.25 | 5.35 ▼32.87 |
General /wp-admin/admin.php?page=ztorie_admin | 1.76 | 4.83 |
Server storage [IO: ▲1.71MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by AMP Stories for WordPress - by Ztorie
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,157 ▲561 | 17.13 ▲1.64 | 12.99 ▲3.35 | 49.29 ▲7.36 |
Dashboard /wp-admin | 3,089 ▲159 | 6.58 ▲0.45 | 129.40 ▼26.60 | 122.59 ▲10.43 |
Posts /wp-admin/edit.php | 2,865 ▲126 | 2.98 ▲0.29 | 63.75 ▼1.82 | 90.85 ▲4.26 |
Add New Post /wp-admin/post-new.php | 1,744 ▲72 | 18.85 ▼0.24 | 381.84 ▲18.88 | 127.69 ▲26.20 |
Media Library /wp-admin/upload.php | 1,856 ▲49 | 5.50 ▲0.45 | 120.98 ▼25.83 | 132.35 ▲14.43 |
General /wp-admin/admin.php?page=ztorie_admin | 1,334 | 2.75 | 57.40 | 123.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5663
wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the custom_admin_script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=ztorie_admin
- > User notice in wp-includes/functions.php+5663
wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the custom_admin_script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/admin.php?page=ztorie_admin
- > Notice in wp-content/plugins/ztorie/ztorie.php+372
Undefined index: save
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 items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/ztorie/assets/template/story-template.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ztorie/ztorie-admin-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ztorie/ztorie.php:25
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=ztorie_admin
- > Network (severe)
http://wp.loc/wp-content/plugins/ztorie/assets/images/confetti.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Contributors: Plugin contributors not specified
ztorie/ztorie.php Passed 13 tests
The main file in "AMP Stories for WordPress - by Ztorie" v. 1.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
30 characters long description:
plugin for using Ztorie widget
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,897 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 6 | 247 | 10 | 1,434 |
PHP | 3 | 100 | 44 | 359 |
JavaScript | 1 | 7 | 3 | 88 |
CSS | 1 | 2 | 0 | 16 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
18 PNG files occupy 1.45MB with 0.68MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-2.png | 0.15KB | 0.15KB | 0.00% |
assets/images/icon_wp_hover.png | 1.45KB | 0.92KB | ▼ 36.52% |
assets/images/middle-1.png | 285.88KB | 32.38KB | ▼ 88.67% |
assets/images/Illustration_bottom.png | 259.85KB | 65.89KB | ▼ 74.64% |
assets/images/icon_wp_active.png | 1.09KB | 0.72KB | ▼ 33.90% |