Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▲1.17ms] Passed 4 tests
A check of server-side resources used by EW Gallery Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 41.22 ▲0.12 |
Dashboard /wp-admin | 3.56 ▲0.25 | 54.75 ▲10.12 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 51.02 ▲4.78 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 97.83 ▲0.54 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 36.20 ▼0.78 |
EW Gallery Settings /wp-admin/edit.php?post_type=ew_gallery&page=ew_gallery_settings | 3.42 | 32.65 |
New EW Gallery /wp-admin/post-new.php?post_type=ew_gallery | 3.55 | 51.36 |
EW Galleries /wp-admin/edit.php?post_type=ew_gallery | 3.52 | 40.75 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 67 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for EW Gallery Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,113 ▲356 | 15.73 ▲1.33 | 5.84 ▲3.80 | 42.18 ▼8.80 |
Dashboard /wp-admin | 2,412 ▲224 | 6.80 ▲1.91 | 125.69 ▲18.11 | 37.97 ▼7.31 |
Posts /wp-admin/edit.php | 2,325 ▲236 | 3.36 ▲1.35 | 51.13 ▲10.61 | 31.79 ▼6.72 |
Add New Post /wp-admin/post-new.php | 1,730 ▲197 | 22.44 ▼0.64 | 601.85 ▼47.85 | 30.29 ▼26.19 |
Media Library /wp-admin/upload.php | 1,461 ▲76 | 4.59 ▲0.39 | 83.78 ▼37.73 | 41.81 ▼5.61 |
EW Gallery Settings /wp-admin/edit.php?post_type=ew_gallery&page=ew_gallery_settings | 2,529 | 4.22 | 86.68 | 33.60 |
New EW Gallery /wp-admin/post-new.php?post_type=ew_gallery | 1,732 | 4.18 | 67.12 | 33.00 |
EW Galleries /wp-admin/edit.php?post_type=ew_gallery | 1,290 | 3.63 | 47.14 | 25.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 14 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ew_gallery&page=ew_gallery_settings
- > Notice in wp-content/plugins/ew-gallery/ew_gallery.php+485
Undefined index: name
- 8 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ew_gallery&page=ew_gallery_settings
- > Notice in wp-content/plugins/ew-gallery/ew_gallery.php+452
Undefined index: default
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ew-gallery/ew_shortcodes.php:685
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ew-gallery/ew_shortcodes.php:685
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ew_gallery
- > Network (severe)
wp-content/plugins/ew-gallery/script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (This screen shot description corresponds to ew_gallery_screenshot1.png.), #2 (This screen shot description corresponds to ew_gallery_screenshot2.png.)
- Plugin Name: You should set the name of your plugin on the first line (
=== ew-gallery ===
)
ew-gallery/ew_gallery.php 77% from 13 tests
Analyzing the main PHP file in "EW Gallery Plugin" version 1.0 Beta...
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 419 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("ew-gallery.php" instead of "ew_gallery.php")
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "1.0 Beta...")
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
Good job! No executable or dangerous file extensions detected6,572 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 1,480 | 825 | 5,087 |
PHP | 3 | 515 | 175 | 1,410 |
CSS | 2 | 8 | 0 | 75 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.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 | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.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 | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
46 PNG files occupy 0.46MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/b13.png | 0.82KB | 0.93KB | 0.00% |
img/b17.png | 0.78KB | 0.82KB | 0.00% |
img/a17.png | 5.38KB | 3.32KB | ▼ 38.24% |
img/a03.png | 5.54KB | 3.44KB | ▼ 37.80% |
img/a18.png | 3.21KB | 1.88KB | ▼ 41.38% |