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: ▲0.06MB] [CPU: ▼2.31ms] Passed 4 tests
This is a short check of server-side resources used by WP Media Stories
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 34.69 ▼6.88 |
Dashboard /wp-admin | 3.36 ▲0.06 | 44.20 ▼2.37 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 47.53 ▲2.36 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 95.96 ▼0.22 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 32.59 ▲0.24 |
All Galleries /wp-admin/edit.php?post_type=media_story | 3.33 | 34.80 |
Category /wp-admin/edit-tags.php?taxonomy=media_story_category&post_type=media_story | 3.28 | 32.90 |
Tags /wp-admin/edit-tags.php?taxonomy=media_story_tag&post_type=media_story | 3.28 | 36.27 |
Add New /wp-admin/post-new.php?post_type=media_story | 3.42 | 49.48 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Media Stories
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲182 | 14.61 ▲0.63 | 10.64 ▲8.64 | 36.28 ▼4.72 |
Dashboard /wp-admin | 2,244 ▲56 | 5.85 ▼0.05 | 97.42 ▼3.93 | 40.18 ▼4.66 |
Posts /wp-admin/edit.php | 2,124 ▲32 | 2.00 ▲0.01 | 40.02 ▼1.05 | 36.08 ▼2.56 |
Add New Post /wp-admin/post-new.php | 1,562 ▲43 | 23.26 ▲0.05 | 587.93 ▼103.90 | 54.83 ▼13.55 |
Media Library /wp-admin/upload.php | 1,423 ▲41 | 4.25 ▲0.07 | 98.17 ▼1.05 | 43.94 ▼0.25 |
All Galleries /wp-admin/edit.php?post_type=media_story | 1,110 | 2.00 | 31.02 | 28.11 |
Category /wp-admin/edit-tags.php?taxonomy=media_story_category&post_type=media_story | 1,300 | 2.13 | 28.65 | 27.30 |
Tags /wp-admin/edit-tags.php?taxonomy=media_story_tag&post_type=media_story | 1,266 | 2.13 | 26.66 | 26.57 |
Add New /wp-admin/post-new.php?post_type=media_story | 2,008 | 5.81 | 101.54 | 35.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-media-stories/admin/templates/metabox-shortcode.php
- > /wp-content/plugins/wp-media-stories/admin/templates/settings.php
- > /wp-content/plugins/wp-media-stories/templates/content-gallery-item.php
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-media-stories/templates/inline-gallery.php:3
- > PHP Notice
Undefined variable: post in wp-content/plugins/wp-media-stories/admin/templates/metabox-shortcode.php on line 1
- > PHP Notice
Undefined variable: show_image in wp-content/plugins/wp-media-stories/templates/content-gallery-item.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-media-stories/includes/editors/gutenberg.php:13
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/wp-media-stories/admin/templates/metabox-shortcode.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-media-stories/admin/templates/metabox-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/wp-media-stories/wp-media-stories.php:378
- > PHP Notice
Undefined variable: show_title in wp-content/plugins/wp-media-stories/templates/content-gallery-item.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-media-stories/admin/templates/metabox.php:1
- > 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 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
5 plugin tags: wp media stories, gallery, wordpress gallery plugin, image gallery, wordpress gallery
wp-media-stories/wp-media-stories.php Passed 13 tests
The main PHP file in "WP Media Stories" ver. 0.1.1 adds more information about the plugin and also serves as the entry point for this plugin
30 characters long description:
WordPress Media Gallery plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin9,239 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 2,067 | 643 | 7,395 |
PHP | 13 | 249 | 509 | 1,150 |
CSS | 3 | 129 | 65 | 694 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 26.80 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 48 | |
▷ Static methods | 5 | 10.42% |
▷ Public methods | 47 | 97.92% |
▷ Protected methods | 1 | 2.08% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/loading_background.png | 0.16KB | 0.15KB | ▼ 6.02% |
admin/assets/images/tinymce_button.png | 0.76KB | 0.85KB | 0.00% |
assets/images/close.png | 1.01KB | 0.19KB | ▼ 80.89% |
assets/images/arrows.png | 1.69KB | 0.75KB | ▼ 55.97% |