Benchmarks
Plugin footprint 65% 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.96MB] [CPU: ▼57.87ms] Passed 4 tests
An overview of server-side resources used by Awesome Wp Photo Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.84 ▼37.90 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.69 ▼48.53 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.57 ▼48.06 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.29 ▼96.98 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.79 ▼29.16 |
Image Gallery /wp-admin/edit.php?post_type=awpg-image-photo | 2.05 | 5.99 |
Add New /wp-admin/post-new.php?post_type=awpg-image-photo | 2.05 | 6.08 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 45 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_gallery-area |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Awesome Wp Photo Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,922 ▲161 | 13.51 ▼0.76 | 8.54 ▲6.96 | 40.33 ▼4.41 |
Dashboard /wp-admin | 2,227 ▲50 | 5.66 ▲0.04 | 92.60 ▼5.34 | 38.55 ▼7.30 |
Posts /wp-admin/edit.php | 2,135 ▲32 | 2.02 ▲0.07 | 40.11 ▼1.56 | 39.55 ▲3.97 |
Add New Post /wp-admin/post-new.php | 1,557 ▲28 | 23.07 ▼0.79 | 670.42 ▼26.67 | 54.26 ▼3.87 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.26 ▲0.10 | 103.66 ▲3.85 | 45.76 ▼0.93 |
Image Gallery /wp-admin/edit.php?post_type=awpg-image-photo | 1,096 | 1.94 | 33.76 | 33.57 |
Add New /wp-admin/post-new.php?post_type=awpg-image-photo | 2,198 | 7.58 | 183.87 | 62.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style 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 prettyPhoto-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_gallery-area
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=awpg-image-photo
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style 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 prettyPhoto-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=awpg-image-photo
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style 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 main-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=awpg-image-photo
- > User notice in wp-includes/functions.php+5905
Function 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 prettyPhoto-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=awpg-image-photo
- > User notice in wp-includes/functions.php+5905
Function 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 pretiphoto-custom handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== awesome-wp-photo-gallery ===
)
awesome-wp-photo-gallery/awesome-wp-photo-gallery.php 92% from 13 tests
The main file in "Awesome Wp Photo Gallery" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 165 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin283 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 3 | 0 | 195 |
PHP | 1 | 15 | 58 | 84 |
JavaScript | 2 | 1 | 6 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 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 | 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
PNG files should be compressed to save space and minimize bandwidth usage
27 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/prettyPhoto/facebook/contentPatternLeft.png | 0.13KB | 0.10KB | ▼ 24.82% |
images/prettyPhoto/dark_square/contentPattern.png | 0.12KB | 0.09KB | ▼ 20.66% |
images/prettyPhoto/dark_rounded/sprite.png | 3.98KB | 2.56KB | ▼ 35.79% |
images/prettyPhoto/facebook/contentPatternBottom.png | 0.14KB | 0.11KB | ▼ 21.13% |
images/prettyPhoto/light_square/sprite.png | 3.42KB | 2.13KB | ▼ 37.67% |