Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼11.05ms] Passed 4 tests
Server-side resources used by Awesome Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 48.09 ▲7.13 |
Dashboard /wp-admin | 3.34 ▼0.01 | 44.17 ▼18.64 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 41.47 ▼5.43 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 79.17 ▼18.55 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.63 ▼1.56 |
Image Gallery /wp-admin/edit.php?post_type=image-gallery | 3.30 | 33.75 |
Add New /wp-admin/post-new.php?post_type=image-gallery | 3.31 | 42.61 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Awesome Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲171 | 13.91 ▼0.49 | 11.36 ▲9.62 | 42.55 ▼0.54 |
Dashboard /wp-admin | 2,236 ▲48 | 5.79 ▲0.73 | 100.87 ▼14.95 | 41.15 ▼6.91 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.03 ▲0.06 | 34.73 ▼2.12 | 33.31 ▼1.56 |
Add New Post /wp-admin/post-new.php | 1,556 ▲37 | 23.29 ▲0.03 | 644.15 ▼23.65 | 49.20 ▼3.06 |
Media Library /wp-admin/upload.php | 1,409 ▲24 | 4.22 ▲0.03 | 101.08 ▲1.10 | 44.84 ▲0.27 |
Image Gallery /wp-admin/edit.php?post_type=image-gallery | 1,077 | 1.99 | 29.77 | 29.75 |
Add New /wp-admin/post-new.php?post_type=image-gallery | 1,621 | 3.64 | 59.38 | 32.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% 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 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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-gallery/gallery.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== awesome-gallery ===
)
awesome-gallery/gallery.php 85% from 13 tests
"Awesome Gallery" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("awesome-gallery.php" instead of "gallery.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 189 characters long)
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
Everything looks great! No dangerous files found in this plugin259 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 6 | 0 | 199 |
PHP | 1 | 33 | 7 | 56 |
JavaScript | 2 | 1 | 6 | 4 |
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.04 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
27 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/prettyPhoto/light_square/btnNext.png | 1.38KB | 1.14KB | ▼ 17.29% |
images/prettyPhoto/dark_square/sprite.png | 3.42KB | 2.13KB | ▼ 37.67% |
images/prettyPhoto/default/sprite_next.png | 1.33KB | 0.39KB | ▼ 70.69% |
images/prettyPhoto/dark_rounded/sprite.png | 3.98KB | 2.56KB | ▼ 35.79% |
images/prettyPhoto/facebook/contentPatternTop.png | 0.14KB | 0.11KB | ▼ 21.13% |