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: ▲2.92MB] [CPU: ▲21.79ms] Passed 4 tests
Server-side resources used by Flexi - Guest Submit
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.77 ▲2.31 | 79.12 ▲33.42 |
Dashboard /wp-admin | 6.43 ▲3.13 | 73.21 ▲21.62 |
Posts /wp-admin/edit.php | 6.47 ▲3.11 | 76.24 ▲23.53 |
Add New Post /wp-admin/post-new.php | 9.18 ▲3.30 | 106.41 ▲9.31 |
Media Library /wp-admin/upload.php | 6.35 ▲3.12 | 65.40 ▲32.69 |
Settings /wp-admin/admin.php?page=flexi_settings | 6.39 | 96.37 |
Tags /wp-admin/edit-tags.php?taxonomy=flexi_tag&post_type=flexi | 6.47 | 54.04 |
Categories /wp-admin/edit-tags.php?taxonomy=flexi_category&post_type=flexi | 6.88 | 62.02 |
Dashboard /wp-admin/admin.php?page=flexi | 6.32 | 51.95 |
All Posts /wp-admin/edit.php?post_type=flexi | 6.45 | 64.21 |
Server storage [IO: ▲11.91MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 538 new files
Database: no new tables, 29 new options
New WordPress options |
---|
widget_flexi_tag_widget |
flexi_gallery_appearance_settings |
flexi_pages_created |
flexi_version |
flexi_activated |
widget_recent-comments |
flexi_detail_settings |
flexi_categories_settings |
widget_theysaidso_widget |
flexi_form_settings |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Flexi - Guest Submit
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,003 ▲242 | 16.38 ▲2.11 | 25.29 ▲23.18 | 41.84 ▼3.13 |
Dashboard /wp-admin | 2,254 ▲80 | 5.68 ▲0.01 | 89.83 ▼12.53 | 38.12 ▼5.38 |
Posts /wp-admin/edit.php | 2,167 ▲67 | 2.24 ▲0.27 | 37.24 ▲2.31 | 33.30 ▼2.63 |
Add New Post /wp-admin/post-new.php | 1,577 ▲46 | 23.65 ▲0.79 | 695.64 ▲24.22 | 65.13 ▲10.66 |
Media Library /wp-admin/upload.php | 1,464 ▲64 | 4.37 ▲0.14 | 105.52 ▼0.70 | 45.35 ▲1.50 |
Settings /wp-admin/admin.php?page=flexi_settings | 871 | 2.13 | 27.88 | 35.54 |
Tags /wp-admin/edit-tags.php?taxonomy=flexi_tag&post_type=flexi | 1,323 | 2.33 | 29.60 | 31.16 |
Categories /wp-admin/edit-tags.php?taxonomy=flexi_category&post_type=flexi | 1,605 | 3.26 | 49.62 | 27.94 |
Dashboard /wp-admin/admin.php?page=flexi | 834 | 2.14 | 28.93 | 24.62 |
All Posts /wp-admin/edit.php?post_type=flexi | 1,234 | 2.19 | 34.21 | 32.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 29 options in the database
- flexi_pages_created
- db_upgraded
- flexi_activated
- flexi_ffmpeg_setting
- widget_flexi_category_widget
- flexi_extension
- flexi_icon_settings
- widget_flexi_tag_widget
- can_compress_scripts
- flexi_gallery_appearance_settings
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/flexi/public/partials/layout/gallery/portfolio/header.php
- > /wp-content/plugins/flexi/public/partials/layout/gallery/wide/header.php
- > /wp-content/plugins/flexi/public/partials/flexi-public-display.php
- > /wp-content/plugins/flexi/admin/partials/flexi-admin-display.php
- 113× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/flexi/includes/addon/class-flexi-custom-field.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flexi/includes/cmb2/example-functions.php:111
- > PHP Fatal error
Uncaught Error: Call to undefined function flexi_image_data() in wp-content/plugins/flexi/public/partials/layout/gallery/basic/loop.php:2
- > PHP Notice
Undefined variable: count in wp-content/plugins/flexi/public/partials/layout/gallery/basic/footer.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flexi/includes/dashboard/class-flexi-dashboard-layout.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/flexi/includes/dashboard/class-flexi-dashboard-pro.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/flexi/includes/cmb2/includes/types/CMB2_Type_Text_Date.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/flexi/includes/cmb2/includes/types/CMB2_Type_File_Base.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/flexi/public/partials/layout/gallery/wide/footer.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/flexi/includes/class-flexi_view_count.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 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
6 plugin tags: visitor, video gallery, gallery, frontend, photo gallery...
flexi/flexi.php Passed 13 tests
The principal PHP file in "Flexi - Guest Submit" v. 4.24 is loaded by WordPress automatically on each request
40 characters long description:
User submitted images/video into gallery
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin71,868 lines of code in 347 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 127 | 17,291 | 22,639 | 39,539 |
PHP | 152 | 4,093 | 8,787 | 17,903 |
CSS | 25 | 558 | 1,337 | 6,787 |
JavaScript | 31 | 1,055 | 967 | 6,612 |
Markdown | 3 | 244 | 0 | 755 |
JSON | 2 | 0 | 0 | 205 |
Sass | 5 | 5 | 1 | 65 |
HTML | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 18.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 92.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 120 | |
▷ Abstract classes | 9 | 7.50% |
▷ Concrete classes | 111 | 92.50% |
▷ Final classes | 0 | 0.00% |
Methods | 847 | |
▷ Static methods | 91 | 10.74% |
▷ Public methods | 747 | 88.19% |
▷ Protected methods | 89 | 10.51% |
▷ Private methods | 11 | 1.30% |
Functions | 112 | |
▷ Named functions | 110 | 98.21% |
▷ Anonymous functions | 2 | 1.79% |
Constants | 18 | |
▷ Global constants | 12 | 66.67% |
▷ Class constants | 6 | 33.33% |
▷ Public constants | 6 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
35 PNG files occupy 4.79MB with 1.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/other.png | 4.04KB | 3.94KB | ▼ 2.44% |
includes/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
public/images/mp4.png | 9.53KB | 9.56KB | 0.00% |
includes/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
public/partials/layout/gallery/wide/screenshot.png | 245.04KB | 95.79KB | ▼ 60.91% |