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: ▼6.45ms] Passed 4 tests
Server-side resources used by Su-Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.63 ▼1.79 |
Dashboard /wp-admin | 3.37 ▲0.06 | 45.00 ▼8.62 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 53.34 ▲5.97 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 82.81 ▼17.22 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.58 ▲1.85 |
All Gallery /wp-admin/edit.php?post_type=su_gallery | 3.33 | 37.61 |
Add New /wp-admin/post-new.php?post_type=su_gallery | 3.35 | 40.09 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Su-Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,954 ▲208 | 14.90 ▲0.35 | 7.02 ▲5.09 | 40.74 ▼2.39 |
Dashboard /wp-admin | 2,243 ▲55 | 6.01 ▲0.13 | 108.39 ▼7.92 | 37.87 ▼7.81 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.62 ▲0.58 | 51.04 ▲12.36 | 34.15 ▲1.50 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 18.59 ▲0.31 | 645.28 ▲45.94 | 34.60 ▼18.05 |
Media Library /wp-admin/upload.php | 1,419 ▲28 | 5.26 ▲1.06 | 100.69 ▼4.67 | 41.79 ▼4.24 |
All Gallery /wp-admin/edit.php?post_type=su_gallery | 1,115 | 2.66 | 41.33 | 27.76 |
Add New /wp-admin/post-new.php?post_type=su_gallery | 1,552 | 3.56 | 54.95 | 33.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/su-gallery/main.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/su-gallery/shortcode.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/su-gallery/meta.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/post-new.php?post_type=su_gallery
- > Javascript (severe) in unknown
/wp-admin/post-new.php?post_type=su_gallery 409:2 Uncaught TypeError: $ is not a function
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: photo gallery, wordpress gallery plugin, gallery
su-gallery/main.php 92% from 13 tests
"Su-Gallery" version 1.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("su-gallery.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected13,851 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 3,079 | 2,086 | 13,606 |
PHP | 3 | 51 | 19 | 225 |
CSS | 3 | 2 | 7 | 20 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 11 | |
▷ Named functions | 11 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin