Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/fw-gallery/fw-gallery.php+45
Undefined variable: adaptor
Server metrics [RAM: ▲1.26MB] [CPU: ▲2.73ms] Passed 4 tests
An overview of server-side resources used by FW Gallery - Photo, video, audio media presentation and management system with players and slideshow
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.49 ▲1.03 | 48.26 ▲7.03 |
Dashboard /wp-admin | 4.64 ▲1.33 | 52.12 ▲2.63 |
Posts /wp-admin/edit.php | 4.69 ▲1.33 | 57.96 ▲13.51 |
Add New Post /wp-admin/post-new.php | 7.22 ▲1.33 | 105.39 ▼9.47 |
Media Library /wp-admin/upload.php | 4.56 ▲1.33 | 41.76 ▲10.73 |
Categories /wp-admin/admin.php?page=fwmg-category | 4.75 | 38.53 |
Tags /wp-admin/admin.php?page=fwmg-tag | 4.62 | 37.84 |
Data Management /wp-admin/admin.php?page=fwmg-data | 4.69 | 42.26 |
Dashboard /wp-admin/admin.php?page=fwmg-fwgallery | 5.08 | 40.33 |
Add-ons /wp-admin/admin.php?page=fwmg-addon | 4.84 | 38.84 |
Files /wp-admin/admin.php?page=fwmg-file | 4.76 | 40.35 |
Settings /wp-admin/admin.php?page=fwmg-configuration | 4.60 | 38.23 |
Translations /wp-admin/admin.php?page=fwmg-translation | 4.75 | 38.36 |
CSS Styles /wp-admin/admin.php?page=fwmg-css | 4.60 | 35.80 |
Server storage [IO: ▲19.13MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 573 new files
Database: 13 new tables, 6 new options
New tables |
---|
wp_fwsg_file_image |
wp_fwsg_category_tag |
wp_fwsg_file_location |
wp_fwsg_file_video |
wp_fwsg_file |
wp_fwsg_tag |
wp_viewlevels |
wp_fwsg_file_audio |
wp_fwsg_file_vote |
wp_extensions |
... |
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
A check of browser resources used by FW Gallery - Photo, video, audio media presentation and management system with players and slideshow
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲121 | 13.28 ▼1.53 | 1.79 ▼0.08 | 43.88 ▼4.60 |
Dashboard /wp-admin | 2,250 ▲62 | 5.87 ▲1.00 | 105.92 ▼9.40 | 80.97 ▲33.46 |
Posts /wp-admin/edit.php | 2,151 ▲62 | 2.00 ▲0.00 | 37.91 ▲1.23 | 35.41 ▲0.44 |
Add New Post /wp-admin/post-new.php | 1,563 ▲27 | 21.88 ▼1.30 | 727.58 ▲48.80 | 57.88 ▲2.82 |
Media Library /wp-admin/upload.php | 1,444 ▲56 | 4.15 ▼0.08 | 115.12 ▲2.90 | 50.23 ▲1.18 |
Categories /wp-admin/admin.php?page=fwmg-category | 710 | 1.14 | 6.44 | 14.80 |
Tags /wp-admin/admin.php?page=fwmg-tag | 710 | 1.14 | 7.74 | 15.44 |
Data Management /wp-admin/admin.php?page=fwmg-data | 719 | 1.14 | 6.87 | 17.16 |
Dashboard /wp-admin/admin.php?page=fwmg-fwgallery | 719 | 1.53 | 6.85 | 23.94 |
Add-ons /wp-admin/admin.php?page=fwmg-addon | 710 | 1.53 | 6.64 | 16.62 |
Files /wp-admin/admin.php?page=fwmg-file | 710 | 1.53 | 6.59 | 20.15 |
Settings /wp-admin/admin.php?page=fwmg-configuration | 710 | 1.53 | 6.68 | 15.34 |
Translations /wp-admin/admin.php?page=fwmg-translation | 710 | 1.14 | 6.67 | 15.56 |
CSS Styles /wp-admin/admin.php?page=fwmg-css | 710 | 1.53 | 6.36 | 15.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie tables detected upon uninstall: 13 tables
- wp_viewlevels
- wp_fwsg_file_image
- wp_fwsg_category
- wp_fwsg_category_tag
- wp_fwsg_file_tag
- wp_extensions
- wp_fwsg_file_location
- wp_fwsg_file_vote
- wp_fwsg_file_file
- wp_fwsg_file_video
- ...
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=fwmg-fwgallery
- > User deprecated in wp-includes/functions.php+5737
Function WP_User->id was called with an argument that is deprecated since version 2.1.0! Use WP_User->ID instead.
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 143× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/fw-gallery/site/layouts/common/grids/standard.php
- > /wp-content/plugins/fw-gallery/site/views/item/view.html.php
- > /wp-content/plugins/fw-gallery/admin/models/file.php
- > /wp-content/plugins/fw-gallery/admin/layouts/addons/plg_fwgallery_meta/onshowconfigextracards.php
- > /wp-content/plugins/fw-gallery/admin/views/fwgallery/tmpl/get_changelog.php
- > /wp-content/plugins/fw-gallery/admin/layouts/addons/plg_fwgallery_map/modal_advert.php
- > /wp-content/plugins/fw-gallery/site/models/fwgallery.php
- > /wp-content/plugins/fw-gallery/site/layouts/common/listing/category_custom.php
- > /wp-content/plugins/fw-gallery/admin/views/category/view.html.php
- > /wp-content/plugins/fw-gallery/admin/layouts/utilites/quickcategories.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fw-gallery/helpers/connector.php:278
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fw-gallery/fw-gallery.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
9 plugin tags: news, slideshow, portfolio, media, video...
fw-gallery/fw-gallery.php 92% from 13 tests
The main PHP file in "FW Gallery - Photo, video, audio media presentation and management system with players and slideshow" ver. 6.6.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 182 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected92,072 lines of code in 205 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 6 | 0 | 20 | 50,392 |
PHP | 147 | 1,427 | 1,164 | 23,950 |
CSS | 12 | 1,399 | 160 | 12,644 |
JavaScript | 23 | 562 | 1,588 | 3,154 |
INI | 5 | 38 | 0 | 1,649 |
XML | 6 | 2 | 0 | 148 |
SQL | 1 | 10 | 0 | 127 |
HTML | 5 | 0 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 22.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 4.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 97.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 112 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 112 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 632 | |
▷ Static methods | 218 | 34.49% |
▷ Public methods | 629 | 99.53% |
▷ Protected methods | 3 | 0.47% |
▷ Private methods | 0 | 0.00% |
Functions | 37 | |
▷ Named functions | 35 | 94.59% |
▷ Anonymous functions | 2 | 5.41% |
Constants | 39 | |
▷ Global constants | 39 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 compressed PNG files occupy 0.09MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
media/jui/img/glyphicons-halflings.png | 12.30KB | 10.35KB | ▼ 15.88% |
admin/assets/images/delete16.png | 0.92KB | 1.02KB | 0.00% |
site/assets/images/video-play.png | 0.80KB | 1.05KB | 0.00% |
media/jui/css/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
admin/assets/images/fw_thankyou_install.png | 30.28KB | 15.51KB | ▼ 48.79% |