Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲9.99MB] [CPU: ▲76.69ms] 75% from 4 tests
An overview of server-side resources used by WP Photo Album Plus
Please fix the following
- Extra RAM: Extra memory usage must be kept under 5MB (currently 9.99MB on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 13.06 ▲9.60 | 128.84 ▲91.78 |
Dashboard /wp-admin | 13.44 ▲10.10 | 129.03 ▲70.73 |
Posts /wp-admin/edit.php | 13.52 ▲10.17 | 142.27 ▲95.53 |
Add New Post /wp-admin/post-new.php | 16.02 ▲10.14 | 169.60 ▲67.59 |
Media Library /wp-admin/upload.php | 13.35 ▲10.12 | 112.62 ▲76.65 |
Server storage [IO: ▲13.51MB] [DB: ▲0.02MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/wp-photo-album-plus/" and "wp-content/uploads/"
- (new file) wp-content/wppa-depot/.empty
Filesystem: 316 new files
Database: 9 new tables, 39 new options
New tables |
---|
wp_wppa_session |
wp_wppa_index |
wp_wppa_rating |
wp_wppa_albums |
wp_wppa_caches |
wp_wppa_photos |
wp_wppa_exif |
wp_wppa_comments |
wp_wppa_iptc |
New WordPress options |
---|
wppa_failed_mails |
wppa_album_crypt_3 |
can_compress_scripts |
widget_wppa_upldr_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_wppa_gp_widget |
widget_theysaidso_widget |
widget_wppa_multitag_photos |
widget_wppa_search_photos |
... |
Browser metrics Passed 4 tests
WP Photo Album Plus: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,414 ▲667 | 17.28 ▲2.66 | 18.04 ▲16.37 | 42.74 ▲3.93 |
Dashboard /wp-admin | 2,453 ▲278 | 7.14 ▲1.47 | 130.60 ▲24.23 | 97.91 ▲54.28 |
Posts /wp-admin/edit.php | 2,326 ▲223 | 3.85 ▲1.90 | 59.71 ▲20.63 | 49.59 ▲14.59 |
Add New Post /wp-admin/post-new.php | 1,708 ▲179 | 21.28 ▼1.72 | 705.41 ▲42.26 | 43.74 ▼9.43 |
Media Library /wp-admin/upload.php | 1,621 ▲221 | 5.44 ▲1.19 | 118.10 ▲21.39 | 83.75 ▲39.94 |
Uninstaller [IO: ▲0.66MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 9 tables in the database
- wp_wppa_caches
- wp_wppa_photos
- wp_wppa_comments
- wp_wppa_session
- wp_wppa_exif
- wp_wppa_albums
- wp_wppa_iptc
- wp_wppa_index
- wp_wppa_rating
- Zombie WordPress options detected upon uninstall: 39 options
- widget_your_ip
- widget_wppa_featen_widget
- wppa_catlist
- widget_wppa_topten_widget
- widget_wppa_tagcloud_photos
- widget_slideshow_widget
- wppa_child_list
- widget_wppa_thumbnail_widget
- widget_wppa_notify_widget
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following items
- 55× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/wp-photo-album-plus/wppa-comment-widget.php
- > /wp-content/plugins/wp-photo-album-plus/wppa-import-ajax.php
- > /wp-content/plugins/wp-photo-album-plus/wppa-upload.php
- > /wp-content/plugins/wp-photo-album-plus/theme/photo-album-page-2016.php
- > /wp-content/plugins/wp-photo-album-plus/wppa-maintenance.php
- > /wp-content/plugins/wp-photo-album-plus/wppa-ajax.php
- > /wp-content/plugins/wp-photo-album-plus/wppa-styles.php
- > /wp-content/plugins/wp-photo-album-plus/wppa-album-admin-autosave.php
- > /wp-content/plugins/wp-photo-album-plus/wppa-items.php
- > /wp-content/plugins/wp-photo-album-plus/wppa-video.php
- 32× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-photo-album-plus/wppa-gutenberg-wppa.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-photo-album-plus/wppa-mailing.php:23
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-photo-album-plus/wppa-qr-widget.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-photo-album-plus/wppa-thumbnail-widget.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-photo-album-plus/wppa-album-navigator-widget.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-photo-album-plus/wppa-dashboard-widgets.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-photo-album-plus/wppa-super-view-widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-photo-album-plus/wppa-privacy-policy.php:69
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-photo-album-plus/wppa-input.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-photo-album-plus/wppa-upload-widget.php:10
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 12 tag instead of maximum 10
wp-photo-album-plus/wppa.php 92% from 13 tests
The principal PHP file in "WP Photo Album Plus" v. 8.5.02.005 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-photo-album-plus.php" instead of "wppa.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin246,305 lines of code in 202 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 13 | 54,030 | 60,932 | 127,123 |
PHP | 116 | 13,406 | 23,278 | 66,055 |
JavaScript | 45 | 11,156 | 4,649 | 51,285 |
CSS | 5 | 182 | 95 | 1,490 |
SVG | 17 | 4 | 3 | 191 |
Markdown | 1 | 96 | 0 | 106 |
JSON | 5 | 0 | 0 | 55 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 21.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 148.00 |
Average method complexity | 4.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 38 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 242 | |
▷ Static methods | 36 | 14.88% |
▷ Public methods | 211 | 87.19% |
▷ Protected methods | 29 | 11.98% |
▷ Private methods | 2 | 0.83% |
Functions | 1,110 | |
▷ Named functions | 1,102 | 99.28% |
▷ Anonymous functions | 8 | 0.72% |
Constants | 64 | |
▷ Global constants | 60 | 93.75% |
▷ Class constants | 4 | 6.25% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
64 PNG files occupy 0.11MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/medal_gold_2.png | 1.46KB | 1.45KB | 0.27% |
img/Pause-Button.png | 0.33KB | 0.25KB | ▼ 23.44% |
img/documentstub.png | 18.88KB | 8.49KB | ▼ 55.03% |
img/Exit.png | 0.42KB | 0.50KB | 0.00% |
img/thumbdown.png | 1.43KB | 1.46KB | 0.00% |