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.92MB] [CPU: ▼55.72ms] Passed 4 tests
A check of server-side resources used by WordPress Cloud Gallery – Responsive Photo and Video Galleries with CDN
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.57 ▼36.47 |
Dashboard /wp-admin | 2.08 ▼1.22 | 6.40 ▼41.50 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 5.22 ▼51.98 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 6.51 ▼92.91 |
Media Library /wp-admin/upload.php | 2.08 ▼1.14 | 5.94 ▼31.92 |
API Key /wp-admin/admin.php?page=wpcloudgallery_settings_page_apikey | 2.08 | 5.67 |
SmugMug /wp-admin/admin.php?page=wpcloudgallery_settings_page_smugmug | 2.08 | 7.19 |
YouTube /wp-admin/admin.php?page=wpcloudgallery_settings_page_youtube | 2.08 | 8.41 |
CloudGallery /wp-admin/admin.php?page=wpcloudgallery_settings_page | 2.08 | 5.85 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WordPress Cloud Gallery – Responsive Photo and Video Galleries with CDN: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,922 ▲161 | 13.45 ▼0.90 | 9.55 ▲7.88 | 47.55 ▲7.58 |
Dashboard /wp-admin | 2,252 ▲72 | 5.64 ▼0.06 | 86.94 ▼3.66 | 39.77 ▼6.55 |
Posts /wp-admin/edit.php | 2,154 ▲54 | 2.00 ▲0.03 | 36.83 ▲0.96 | 35.24 ▼1.70 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 23.56 ▲0.51 | 697.09 ▲41.48 | 54.39 ▼2.01 |
Media Library /wp-admin/upload.php | 1,454 ▲54 | 4.22 ▼0.07 | 102.40 ▼1.50 | 47.26 ▲3.41 |
API Key /wp-admin/admin.php?page=wpcloudgallery_settings_page_apikey | 921 | 2.01 | 29.82 | 35.70 |
SmugMug /wp-admin/admin.php?page=wpcloudgallery_settings_page_smugmug | 1,211 | 4.03 | 78.76 | 75.57 |
YouTube /wp-admin/admin.php?page=wpcloudgallery_settings_page_youtube | 1,483 | 4.10 | 54.56 | 55.50 |
CloudGallery /wp-admin/admin.php?page=wpcloudgallery_settings_page | 1,223 | 3.72 | 82.92 | 73.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > 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 jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpcloudgallery_settings_page
- > 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 jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpcloudgallery_settings_page_apikey
- > Notice in wp-content/plugins/wp-cloud-gallery/wpcl-apikey.php+19
Undefined variable: wpcloudgallery_active_tab
- > GET request to /wp-admin/admin.php?page=wpcloudgallery_settings_page_apikey
- > Notice in wp-content/plugins/wp-cloud-gallery/wpcl-apikey.php+57
Undefined variable: confirmSave
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
The following issues need your attention
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-cloud-gallery/wpcl-youtube.php
- > /wp-content/plugins/wp-cloud-gallery/wpcl-main.php
- > /wp-content/plugins/wp-cloud-gallery/wpcl-smugmug.php
- > /wp-content/plugins/wp-cloud-gallery/wpcl-apikey.php
- > /wp-content/plugins/wp-cloud-gallery/wpcloudgallery.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
wp-cloud-gallery/wpcloudgallery.php 85% from 13 tests
This is the main PHP file of "WordPress Cloud Gallery – Responsive Photo and Video Galleries with CDN" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-cloud-gallery.php" instead of "wpcloudgallery.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin524 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 285 | 31 | 524 |
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.55 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin