Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼7.76ms] Passed 4 tests
A check of server-side resources used by Categorized Gallery Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 36.96 ▼4.44 |
Dashboard /wp-admin | 3.57 ▲0.26 | 46.39 ▼3.43 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 48.08 ▼0.52 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 78.27 ▼22.63 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 35.14 ▲0.10 |
user album publish /wp-admin/admin.php?page=update_publish_gallery_album | 3.40 | 31.44 |
Gallery /wp-admin/admin.php?page=gallery_list | 3.43 | 36.73 |
delete multiple images /wp-admin/admin.php?page=delete_multiple_image | 3.40 | 32.47 |
delete gallery title /wp-admin/admin.php?page=delete_gallery_title | 3.40 | 31.75 |
list gallery album /wp-admin/admin.php?page=add_gallary_images | 3.40 | 28.87 |
Add New Gallery /wp-admin/admin.php?page=add_new_gallery_images | 3.44 | 34.52 |
user gallery publish /wp-admin/admin.php?page=update_publish_gallery_image | 3.40 | 28.65 |
user image crop /wp-admin/admin.php?page=image_resize_crop1 | 3.40 | 29.03 |
user image reset /wp-admin/admin.php?page=reset_image | 3.40 | 29.19 |
delete gallery album /wp-admin/admin.php?page=delete_gallery_album | 3.40 | 32.82 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 58 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_galcategory |
wp_galimage |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Categorized Gallery Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲178 | 13.49 ▼0.78 | 12.09 ▲10.47 | 44.15 ▼3.72 |
Dashboard /wp-admin | 2,219 ▲42 | 5.63 ▲0.02 | 92.35 ▲3.31 | 75.49 ▲35.89 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.06 ▲0.05 | 37.14 ▲0.75 | 33.38 ▼3.16 |
Add New Post /wp-admin/post-new.php | 1,577 ▲47 | 24.45 ▲1.30 | 655.55 ▲42.48 | 35.99 ▼7.65 |
Media Library /wp-admin/upload.php | 1,433 ▲30 | 4.12 ▼0.09 | 104.14 ▼0.69 | 69.98 ▲23.62 |
user album publish /wp-admin/admin.php?page=update_publish_gallery_album | 698 | 1.37 | 8.43 | 17.09 |
Gallery /wp-admin/admin.php?page=gallery_list | 865 | 1.68 | 27.02 | 26.73 |
delete multiple images /wp-admin/admin.php?page=delete_multiple_image | 809 | 1.65 | 25.70 | 24.01 |
delete gallery title /wp-admin/admin.php?page=delete_gallery_title | 698 | 1.37 | 8.13 | 18.59 |
list gallery album /wp-admin/admin.php?page=add_gallary_images | 698 | 1.55 | 7.81 | 13.41 |
Add New Gallery /wp-admin/admin.php?page=add_new_gallery_images | 886 | 1.69 | 24.71 | 29.08 |
user gallery publish /wp-admin/admin.php?page=update_publish_gallery_image | 698 | 1.37 | 7.85 | 11.95 |
user image crop /wp-admin/admin.php?page=image_resize_crop1 | 698 | 1.55 | 8.07 | 14.43 |
user image reset /wp-admin/admin.php?page=reset_image | 698 | 1.55 | 8.07 | 13.26 |
delete gallery album /wp-admin/admin.php?page=delete_gallery_album | 698 | 1.55 | 7.61 | 18.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/categorized-gallery/init.php+115
rmdir(wp-content/uploads/categoryimg): Directory not empty
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=delete_multiple_image
- > Notice in wp-content/plugins/categorized-gallery/delete_gallery_album.php+54
Undefined index: catid
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
Almost there! Just fix the following items
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/categorized-gallery/html/add_update_gallery.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/categorized-gallery/html/display_gallary_image.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/categorized-gallery/html/add_gallary_images_header.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/categorized-gallery/html/image_crop.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/categorized-gallery/html/display_title_image.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: No descriptions were found for these screenshots #2, #3, #4, #5, #6 in categorized-gallery/assets to your readme.txt
- Plugin Name: You should set the name of your plugin on the first line (
=== categorized-gallery ===
)
categorized-gallery/init.php 92% from 13 tests
The entry point to "Categorized Gallery Plugin" version 1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("categorized-gallery.php" instead of "init.php")
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
Good job! No executable or dangerous file extensions detected1,497 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 84 | 108 | 864 |
CSS | 5 | 57 | 38 | 483 |
JavaScript | 3 | 7 | 9 | 150 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 4.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
33 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/fancybox.png | 14.93KB | 8.47KB | ▼ 43.29% |
icons/fancy_shadow_se.png | 0.34KB | 0.48KB | 0.00% |
icons/addimg.png | 2.68KB | 2.46KB | ▼ 8.26% |
icons/crop.png | 7.70KB | 4.47KB | ▼ 41.92% |
icons/close.png | 0.27KB | 0.29KB | 0.00% |