Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼7.07ms] 75% from 4 tests
This is a short check of server-side resources used by Photo Video Gallery Master
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 636.05ms on /wp-admin/edit.php?post_type=pvgm_gallery&page=pvgm_recommend_page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 41.55 ▼5.56 |
Dashboard /wp-admin | 3.51 ▲0.21 | 50.91 ▲1.00 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 50.75 ▲1.36 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 85.43 ▼25.08 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 39.69 ▲2.26 |
Recommendation /wp-admin/edit.php?post_type=pvgm_gallery&page=pvgm_recommend_page | 3.64 | 636.05 |
Need Help? /wp-admin/edit.php?post_type=pvgm_gallery&page=pvgm_help_page | 3.41 | 35.37 |
All Galleries /wp-admin/edit.php?post_type=pvgm_gallery | 3.48 | 44.53 |
Add New Gallery /wp-admin/post-new.php?post_type=pvgm_gallery | 3.61 | 49.56 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Photo Video Gallery Master
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲181 | 13.56 ▼0.87 | 5.60 ▲3.82 | 42.40 ▲0.07 |
Dashboard /wp-admin | 2,246 ▲58 | 6.05 ▲0.20 | 103.59 ▲4.67 | 41.08 ▼4.58 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.04 ▲0.01 | 35.17 ▼1.99 | 31.84 ▼4.07 |
Add New Post /wp-admin/post-new.php | 1,568 ▲40 | 23.49 ▲5.16 | 679.46 ▲60.40 | 61.17 ▲10.51 |
Media Library /wp-admin/upload.php | 1,432 ▲47 | 4.20 ▲0.00 | 95.56 ▼4.09 | 41.78 ▼2.92 |
Recommendation /wp-admin/edit.php?post_type=pvgm_gallery&page=pvgm_recommend_page | 1,259 | 2.03 | 25.66 | 29.11 |
Need Help? /wp-admin/edit.php?post_type=pvgm_gallery&page=pvgm_help_page | 1,444 | 10.87 | 269.30 | 65.26 |
All Galleries /wp-admin/edit.php?post_type=pvgm_gallery | 1,102 | 1.94 | 29.99 | 33.21 |
Add New Gallery /wp-admin/post-new.php?post_type=pvgm_gallery | 3,480 | 3.82 | 71.82 | 202.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/photo-video-gallery-master/css/style_common.php
- 26× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: PVGM_Label_Text_Color in wp-content/plugins/photo-video-gallery-master/css/style_common.php on line 11
- > PHP Notice
Undefined variable: PVGM_Id in wp-content/plugins/photo-video-gallery-master/css/style_common.php on line 16
- > PHP Notice
Undefined variable: Label_Bg_Color in wp-content/plugins/photo-video-gallery-master/css/style_common.php on line 10
- > PHP Notice
Undefined variable: PVGM_Id in wp-content/plugins/photo-video-gallery-master/css/style_common.php on line 27
- > PHP Notice
Undefined variable: PVGM_Image_Border in wp-content/plugins/photo-video-gallery-master/css/style_common.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/photo-video-gallery-master/gallery-short-code.php:2
- > PHP Notice
Undefined variable: PVGM_Button_Text_Color in wp-content/plugins/photo-video-gallery-master/css/style_common.php on line 29
- > PHP Notice
Undefined variable: PVGM_Id in wp-content/plugins/photo-video-gallery-master/css/style_common.php on line 2
- > PHP Notice
Undefined variable: PVGM_Descp_Text_Color in wp-content/plugins/photo-video-gallery-master/css/style_common.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/photo-video-gallery-master/help-page.php:13
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: There are too many tags (80 tag instead of maximum 10)
photo-video-gallery-master/photo-video-gallery-master.php Passed 13 tests
The main PHP file in "Photo Video Gallery Master" ver. 1.5.3 adds more information about the plugin and also serves as the entry point for this plugin
134 characters long description:
Display your WordPress content like Photo, Video, Link, Image etc in Gallery format With CSS3 Hover Animation & Display With Lightbox.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin7,423 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 713 | 41 | 4,936 |
PHP | 6 | 134 | 60 | 1,527 |
JavaScript | 2 | 6 | 11 | 547 |
PO File | 1 | 191 | 205 | 412 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 20 | |
▷ Static methods | 1 | 5.00% |
▷ Public methods | 19 | 95.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/image-close-icon.png | 1.77KB | 1.19KB | ▼ 32.64% |
lightbox/swipebox/img/icons.png | 0.71KB | 0.43KB | ▼ 39.64% |