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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.16ms] Passed 4 tests
Server-side resources used by BW WP Stories
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 43.17 ▼1.50 |
Dashboard /wp-admin | 3.40 ▲0.10 | 53.26 ▲2.95 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 53.49 ▲2.92 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 84.10 ▼17.00 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 47.39 ▲8.51 |
Settings /wp-admin/admin.php?page=bw_wpstories | 2.87 | 15.57 |
About /wp-admin/admin.php?page=bw_wpstories_about | 3.29 | 33.97 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BW WP Stories
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲83 | 14.29 ▼0.42 | 2.07 ▲0.36 | 42.85 ▼4.20 |
Dashboard /wp-admin | 2,202 ▲31 | 5.54 ▼0.10 | 84.00 ▼5.25 | 77.78 ▲32.78 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 1.99 ▼0.00 | 38.40 ▲2.67 | 36.41 ▲2.90 |
Add New Post /wp-admin/post-new.php | 1,698 ▲168 | 21.95 ▼1.51 | 706.82 ▼11.81 | 46.30 ▼12.37 |
Media Library /wp-admin/upload.php | 1,422 ▲25 | 4.23 ▲0.03 | 105.55 ▼1.79 | 73.01 ▲25.62 |
Settings /wp-admin/admin.php?page=bw_wpstories | 1,005 | 2.13 | 24.22 | 27.58 |
About /wp-admin/admin.php?page=bw_wpstories_about | 1,407 | 10.57 | 265.98 | 78.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% 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)
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=bw_wpstories
- > Notice in wp-content/plugins/bw-product-stories/product-stories.php+48
Undefined index: create_test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bw-product-stories/functions.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bw-product-stories/functions.php:65
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: stories, wpstories, instagram, instagram stories on wordpress, blog...
bw-product-stories/product-stories.php 85% from 13 tests
The main PHP script in "BW WP Stories" version 3.1.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bw-product-stories.php" instead of "product-stories.php")
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
Everything looks great! No dangerous files found in this plugin643 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 101 | 21 | 551 |
JavaScript | 2 | 14 | 0 | 68 |
CSS | 3 | 1 | 0 | 24 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/wpstories_icon.png | 42.90KB | 15.09KB | ▼ 64.81% |
img/wpstories_icon_30.png | 2.32KB | 1.54KB | ▼ 33.70% |
img/wpstories_icon_25.png | 1.84KB | 1.38KB | ▼ 24.95% |
img/wpstories_icon_20.png | 1.34KB | 1.05KB | ▼ 21.56% |