Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.34ms] Passed 4 tests
Analyzing server-side resources used by WebPlus Gallery on Wordpress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.83 ▲0.40 |
Dashboard /wp-admin | 3.38 ▲0.03 | 52.91 ▼10.78 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 55.08 ▲2.18 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 88.79 ▼14.23 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.95 ▼4.75 |
WebPlus Gallery /wp-admin/edit.php?post_type=webplusgallery | 3.35 | 44.57 |
Create Gallery /wp-admin/post-new.php?post_type=webplusgallery | 3.34 | 45.58 |
Pro version /wp-admin/edit.php?post_type=webplusgallery&page=pro-webplusgallery-version | 3.28 | 40.11 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WebPlus Gallery on Wordpress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲214 | 14.43 ▲0.05 | 1.84 ▲0.05 | 43.44 ▲3.33 |
Dashboard /wp-admin | 2,366 ▲189 | 6.18 ▲0.50 | 122.12 ▲33.74 | 39.60 ▼1.05 |
Posts /wp-admin/edit.php | 2,293 ▲196 | 3.37 ▲1.35 | 54.27 ▲17.54 | 35.38 ▲0.41 |
Add New Post /wp-admin/post-new.php | 6,242 ▲4,711 | 18.94 ▼4.12 | 934.24 ▲235.19 | 40.34 ▼14.44 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.14 ▼0.05 | 82.74 ▼26.48 | 45.00 ▼0.36 |
WebPlus Gallery /wp-admin/edit.php?post_type=webplusgallery | 1,276 | 3.38 | 50.00 | 31.65 |
Create Gallery /wp-admin/post-new.php?post_type=webplusgallery | 1,695 | 3.57 | 68.29 | 37.32 |
Pro version /wp-admin/edit.php?post_type=webplusgallery&page=pro-webplusgallery-version | 986 | 3.26 | 37.69 | 23.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=webplusgallery
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/webplus-gallery/include/WPThumb/wpthumb.watermark.php:79
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/webplus-gallery/include/WPThumb/wpthumb.background-fill.php:146
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/webplus-gallery/include/WPThumb/wpthumb.shortcodes.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/webplus-gallery/include/WPThumb/wpthumb.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Image_Editor_GD' not found in wp-content/plugins/webplus-gallery/include/WPThumb/wpthumb.image-editor.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webplus-gallery/include/WPThumb/wpthumb.crop-from-position.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Stable tag: No string
- Screenshots: These screenshots need descriptions #1, #2 in webplus-gallery/assets to your readme.txt
- Requires at least: Version format is invalid
webplus-gallery/plugin.php 92% from 13 tests
The primary PHP file in "WebPlus Gallery on Wordpress" version 1.5.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("webplus-gallery.php" instead of "plugin.php")
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
No dangerous file extensions were detected11,869 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 7,335 |
CSS | 5 | 76 | 87 | 1,687 |
JavaScript | 9 | 78 | 144 | 1,533 |
PHP | 14 | 442 | 350 | 1,174 |
Sass | 3 | 12 | 1 | 123 |
Markdown | 1 | 8 | 0 | 17 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 11.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 5 | 8.47% |
▷ Public methods | 51 | 86.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 13.56% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/lightslider/src/img/controls.png | 2.19KB | 0.95KB | ▼ 56.49% |