Benchmarks
Plugin footprint 82% 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.37MB] [CPU: ▼3.79ms] 75% from 4 tests
A check of server-side resources used by Photo Gallery Builder
The following require your attention
- CPU: Total CPU usage should be kept under 500.00ms (currently 640.90ms on /wp-admin/edit.php?post_type=pg_builder&page=pgbp-dashboard)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 40.58 ▼0.72 |
Dashboard /wp-admin | 3.73 ▲0.38 | 47.01 ▼13.70 |
Posts /wp-admin/edit.php | 3.76 ▲0.41 | 48.79 ▼1.60 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.41 | 96.77 ▲0.86 |
Media Library /wp-admin/upload.php | 3.58 ▲0.36 | 37.50 ▲3.70 |
Install Popular Plugins From WPdiscover /wp-admin/edit.php?post_type=pg_builder&page=pgbp-dashboard | 3.64 | 640.90 |
Add New /wp-admin/post-new.php?post_type=pg_builder | 3.77 | 50.63 |
Galleries /wp-admin/edit.php?post_type=pg_builder | 3.63 | 35.43 |
Upgrade To Premium /wp-admin/edit.php?post_type=pg_builder&page=pgbp-premium | 3.56 | 32.66 |
Documentation /wp-admin/edit.php?post_type=pg_builder&page=pgbp-designs | 3.56 | 35.40 |
Server storage [IO: ▲3.83MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 118 new files
Database: no new tables, 11 new options
New WordPress options |
---|
photo-gallery-v |
db_upgraded |
photo-gallery-type |
widget_recent-posts |
theysaidso_admin_options |
pgbp_cns_review |
can_compress_scripts |
photo-gallery-installDate |
pgb-photo-gallery-images-default |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Photo Gallery Builder
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,013 ▲266 | 13.52 ▼0.67 | 15.47 ▲13.78 | 43.99 ▲1.41 |
Dashboard /wp-admin | 2,244 ▲64 | 5.58 ▼0.05 | 94.12 ▲9.13 | 40.90 ▲5.51 |
Posts /wp-admin/edit.php | 2,150 ▲50 | 2.00 ▲0.05 | 38.88 ▼3.59 | 35.47 ▼3.79 |
Add New Post /wp-admin/post-new.php | 1,569 ▲43 | 23.57 ▲0.35 | 590.54 ▼76.40 | 51.87 ▲2.98 |
Media Library /wp-admin/upload.php | 1,546 ▲149 | 4.41 ▲0.18 | 103.27 ▲2.82 | 39.97 ▼2.42 |
Install Popular Plugins From WPdiscover /wp-admin/edit.php?post_type=pg_builder&page=pgbp-dashboard | 1,631 | 2.05 | 28.05 | 32.44 |
Add New /wp-admin/post-new.php?post_type=pg_builder | 3,274 | 4.96 | 181.68 | 75.70 |
Galleries /wp-admin/edit.php?post_type=pg_builder | 1,122 | 1.92 | 34.06 | 30.50 |
Upgrade To Premium /wp-admin/edit.php?post_type=pg_builder&page=pgbp-premium | 1,148 | 2.00 | 24.15 | 51.21 |
Documentation /wp-admin/edit.php?post_type=pg_builder&page=pgbp-designs | 1,118 | 2.00 | 23.67 | 35.05 |
Uninstaller [IO: ▲0.94MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 11 options
- photo-gallery-type
- pgb-photo-gallery-images-default
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- pgbp_cns_review
- photo-gallery-v
- widget_recent-comments
- theysaidso_admin_options
- photo-gallery-installDate
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
include(): Failed opening 'ABSPATHwp-includes/pluggable.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/photo-gallery-builder/default_image.php on line 9
- > PHP Warning
Use of undefined constant PHOTO_GALLERY_BUILDER_LIBRARIES - assumed 'PHOTO_GALLERY_BUILDER_LIBRARIES' (this will throw an Error in a future version of PHP) in wp-content/plugins/photo-gallery-builder/includes/libraries/class-photo-gallery-template-loader.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/photo-gallery-builder/includes/install/installation.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_bits() in wp-content/plugins/photo-gallery-builder/default_image.php:12
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/photo-gallery-builder/default_image.php on line 9
- > PHP Warning
require(PHOTO_GALLERY_BUILDER_LIBRARIESclass-gamajo-template-loader.php): failed to open stream: No such file or directory in wp-content/plugins/photo-gallery-builder/includes/libraries/class-photo-gallery-template-loader.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/photo-gallery-builder/photo-gallery-builder.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/photo-gallery-builder/includes/public/templates/photo-gallery.php:3
- > PHP Warning
include(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/photo-gallery-builder/default_image.php on line 9
- > PHP Warning
Use of undefined constant PHOTO_GALLERY_BUILDER_IMAGES - assumed 'PHOTO_GALLERY_BUILDER_IMAGES' (this will throw an Error in a future version of PHP) in wp-content/plugins/photo-gallery-builder/default_image.php on line 2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7, #8, #9 in photo-gallery-builder/assets to your readme.txt
- Donate link: Invalid url: "#"
photo-gallery-builder/photo-gallery-builder.php 92% from 13 tests
The entry point to "Photo Gallery Builder" version 3.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 154 characters long)
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 plugin21,212 lines of code in 92 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 0 | 13 | 5,563 |
CSS | 17 | 1,984 | 174 | 5,224 |
JavaScript | 13 | 1,110 | 1,142 | 3,670 |
PHP | 25 | 843 | 567 | 2,982 |
Sass | 16 | 43 | 34 | 1,903 |
LESS | 16 | 41 | 51 | 1,870 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 20.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 4.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 8 | 12.90% |
▷ Public methods | 47 | 75.81% |
▷ Protected methods | 3 | 4.84% |
▷ Private methods | 12 | 19.35% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.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
4 compressed PNG files occupy 0.04MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/prev.png | 1.33KB | 1.59KB | 0.00% |
assets/images/close.png | 0.27KB | 0.29KB | 0.00% |
assets/images/icon-128x128.png | 41.95KB | 21.23KB | ▼ 49.38% |
assets/images/next.png | 1.32KB | 1.58KB | 0.00% |