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.09MB] [CPU: ▼0.56ms] Passed 4 tests
An overview of server-side resources used by ALD Image Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 42.17 ▲1.01 |
Dashboard /wp-admin | 3.41 ▲0.11 | 51.99 ▲3.96 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 53.56 ▲3.37 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 87.91 ▼6.75 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.45 ▲0.12 |
Add New Gallery /wp-admin/admin.php?page=add-new-ald-gallery | 3.31 | 34.90 |
ALD Gallery /wp-admin/admin.php?page=ald-gallery | 3.30 | 37.27 |
/wp-admin/admin.php?page=ald-gallery-images | 3.28 | 33.48 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for ALD Image Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,160 ▲414 | 15.46 ▲1.06 | 7.43 ▲5.75 | 38.95 ▼3.22 |
Dashboard /wp-admin | 2,452 ▲264 | 6.64 ▲0.74 | 136.36 ▲37.45 | 100.60 ▲58.82 |
Posts /wp-admin/edit.php | 2,358 ▲269 | 3.71 ▲1.72 | 52.62 ▲12.90 | 56.96 ▲20.83 |
Add New Post /wp-admin/post-new.php | 1,615 ▲101 | 17.55 ▼0.18 | 654.08 ▼0.96 | 37.12 ▼14.88 |
Media Library /wp-admin/upload.php | 1,500 ▲109 | 4.41 ▲0.23 | 90.23 ▼7.40 | 81.90 ▲36.48 |
Add New Gallery /wp-admin/admin.php?page=add-new-ald-gallery | 1,092 | 3.30 | 40.95 | 70.74 |
ALD Gallery /wp-admin/admin.php?page=ald-gallery | 1,212 | 3.30 | 41.60 | 75.42 |
/wp-admin/admin.php?page=ald-gallery-images | 1,156 | 3.30 | 41.40 | 71.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=ald-gallery-images
- > Notice in wp-content/plugins/ald-image-gallery/ald-gallery.php+175
Undefined index: gallery
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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ald-image-gallery/js/img_show_js.php
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/ald-image-gallery/ald-gallery.php on line 28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ald-image-gallery/inc/add-new-gallery.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ald-image-gallery/inc/shortcode.php:44
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/ald-image-gallery/ald-gallery.php on line 28
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ald-image-gallery/ald-gallery.php on line 28
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/ald-image-gallery/inc/gallery-list-class.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ald-image-gallery/inc/image-add.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ald-image-gallery/inc/image-delete.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ald-image-gallery/inc/delete-gallery.php:3
- > PHP Warning
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)
No browser issues were found
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
These attributes need your attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
ald-image-gallery/ald-gallery.php 85% from 13 tests
The main PHP file in "ALD Image Gallery" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 259 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ald-image-gallery.php" instead of "ald-gallery.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,853 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 213 | 414 | 1,181 |
PHP | 9 | 44 | 79 | 557 |
Sass | 14 | 117 | 34 | 502 |
CSS | 2 | 18 | 112 | 481 |
JSON | 2 | 0 | 0 | 69 |
SVG | 2 | 0 | 1 | 57 |
Markdown | 1 | 2 | 0 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
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 | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 71.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 28.57% |
Functions | 15 | |
▷ Named functions | 15 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin