Benchmarks
Plugin footprint 83% 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.62MB] [CPU: ▲3.07ms] Passed 4 tests
This is a short check of server-side resources used by Gallery Manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.64 | 47.61 ▲5.06 |
Dashboard /wp-admin | 3.92 ▲0.62 | 53.96 ▼2.90 |
Posts /wp-admin/edit.php | 3.98 ▲0.62 | 55.09 ▲9.94 |
Add New Post /wp-admin/post-new.php | 6.57 ▲0.68 | 87.95 ▲1.62 |
Media Library /wp-admin/upload.php | 3.84 ▲0.62 | 40.47 ▲8.50 |
Add Gallery /wp-admin/post-new.php?post_type=gallery | 3.94 | 52.59 |
Galleries /wp-admin/options-general.php?page=gallery-options | 3.81 | 36.88 |
All Galleries /wp-admin/edit.php?post_type=gallery | 3.89 | 37.33 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 96 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_gallery-taxonomy-cloud |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_random-gallery-images |
widget_gallery-taxonomies |
widget_galleries |
Browser metrics Passed 4 tests
Checking browser requirements for Gallery Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,009 ▲274 | 13.65 ▼0.98 | 7.60 ▲5.67 | 43.65 ▲0.10 |
Dashboard /wp-admin | 2,241 ▲53 | 4.84 ▼0.04 | 100.45 ▼14.61 | 38.03 ▼8.57 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.04 ▲0.01 | 34.85 ▼3.45 | 36.09 ▲2.52 |
Add New Post /wp-admin/post-new.php | 1,571 ▲46 | 18.35 ▼4.83 | 592.93 ▼72.28 | 59.55 ▼9.92 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.15 ▼0.07 | 97.35 ▲2.37 | 43.39 ▲0.99 |
Add Gallery /wp-admin/post-new.php?post_type=gallery | 1,990 | 3.81 | 69.56 | 39.89 |
Galleries /wp-admin/options-general.php?page=gallery-options | 1,673 | 1.91 | 30.90 | 32.57 |
All Galleries /wp-admin/edit.php?post_type=gallery | 1,110 | 2.01 | 32.03 | 29.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 10 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_galleries
- widget_gallery-taxonomy-cloud
- widget_random-gallery-images
- widget_gallery-taxonomies
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 46× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: widget in wp-content/plugins/fancy-gallery/templates/gallery-taxonomies-cloud-widget.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/fancy-gallery/widgets/galleries.php:7
- > PHP Fatal error
Uncaught Error: Class 'WordPress\\Plugin\\GalleryManager\\I18n' not found in wp-content/plugins/fancy-gallery/options-page/previews.php:11
- > PHP Fatal error
Uncaught Error: Class 'WordPress\\Plugin\\GalleryManager\\Options' not found in wp-content/plugins/fancy-gallery/options-page/options-page.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function WordPress\\Plugin\\GalleryManager\\add_Filter() in wp-content/plugins/fancy-gallery/includes/tiny-mce-editor.php:9
- > PHP Notice
Undefined variable: widget in wp-content/plugins/fancy-gallery/templates/galleries-widget.php on line 11
- > PHP Notice
Trying to get property 'before_widget' of non-object in wp-content/plugins/fancy-gallery/templates/gallery-taxonomies-widget.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function WordPress\\Plugin\\GalleryManager\\add_Filter() in wp-content/plugins/fancy-gallery/includes/wpml.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/fancy-gallery/widgets/taxonomies.php:7
- > PHP Notice
Undefined variable: options in wp-content/plugins/fancy-gallery/templates/galleries-widget.php on line 16
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 28 tag instead of maximum 10
fancy-gallery/plugin.php 85% from 13 tests
Analyzing the main PHP file in "Gallery Manager" version 1.6.58
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 195 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("fancy-gallery.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin4,270 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 42 | 496 | 187 | 2,258 |
PO File | 2 | 396 | 464 | 1,029 |
Sass | 6 | 61 | 0 | 456 |
JavaScript | 5 | 63 | 30 | 298 |
CSS | 14 | 32 | 25 | 168 |
JSON | 1 | 0 | 0 | 40 |
SVG | 2 | 4 | 0 | 21 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 7.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 21 | 80.77% |
▷ Concrete classes | 5 | 19.23% |
▷ Final classes | 0 | 0.00% |
Methods | 136 | |
▷ Static methods | 106 | 77.94% |
▷ Public methods | 136 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.03MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/error.png | 2.16KB | 1.62KB | ▼ 25.05% |
assets/img/plugin-logo-1544x500.png | 25.25KB | 25.59KB | 0.00% |