Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.70MB] [CPU: ▼4.48ms] Passed 4 tests
Analyzing server-side resources used by Mage Front End Forms
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.63 | 47.48 ▲4.81 |
Dashboard /wp-admin | 4.05 ▲0.74 | 53.58 ▼6.61 |
Posts /wp-admin/edit.php | 4.09 ▲0.73 | 48.94 ▼1.06 |
Add New Post /wp-admin/post-new.php | 6.68 ▲0.79 | 86.43 ▼15.05 |
Media Library /wp-admin/upload.php | 3.93 ▲0.70 | 47.82 ▲9.35 |
Add Form /wp-admin/post-new.php?post_type=mage_form | 4.16 | 55.52 |
Help /wp-admin/edit.php?post_type=mage_form&page=mage_forms_help | 3.84 | 38.01 |
Addons /wp-admin/edit.php?post_type=mage_form&page=mage_forms_addons | 3.83 | 36.56 |
Forms /wp-admin/edit.php?post_type=mage_form | 4.05 | 43.38 |
Server storage [IO: ▲1.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Mage Front End Forms: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲44 | 14.32 ▼0.03 | 2.03 ▼0.06 | 43.82 ▼0.93 |
Dashboard /wp-admin | 2,214 ▲43 | 5.56 ▼0.10 | 86.12 ▼9.08 | 76.94 ▲33.58 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 1.97 ▲0.03 | 37.25 ▲0.90 | 34.07 ▼4.22 |
Add New Post /wp-admin/post-new.php | 1,711 ▲174 | 22.18 ▲4.01 | 692.26 ▲67.48 | 56.59 ▼15.94 |
Media Library /wp-admin/upload.php | 1,434 ▲37 | 4.17 ▼0.00 | 98.79 ▼0.60 | 61.67 ▲15.98 |
Add Form /wp-admin/post-new.php?post_type=mage_form | 2,529 | 7.68 | 188.83 | 165.24 |
Help /wp-admin/edit.php?post_type=mage_form&page=mage_forms_help | 1,843 | 2.29 | 29.04 | 132.61 |
Addons /wp-admin/edit.php?post_type=mage_form&page=mage_forms_addons | 948 | 1.99 | 25.46 | 49.91 |
Forms /wp-admin/edit.php?post_type=mage_form | 1,648 | 1.99 | 42.29 | 41.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% 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)
Almost there, just fix the following server-side errors
- 17 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=mage_form&page=mage_forms_addons
- > Warning in wp-content/plugins/mage-forms/core/mage-cast.php+190
preg_replace(): Compilation failed: invalid range in character class at offset 13
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
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mage-forms/core/mage-cast.php:31
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/post-new.php?post_type=mage_form
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $mage_form_type.live is not a function" "TypeError: $mage_form_type.live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/mage-forms/source/js/mage-forms.js?ver=6.3.1:6:18)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=mage_form
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $mage_form_type.live is not a function
- > GET request to /wp-admin/edit.php?post_type=mage_form&page=mage_forms_help
- > Network (severe)
wp-content/plugins/mage-forms/core/images/arrow-down.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=mage_form&page=mage_forms_addons
- > Network (severe)
wp-content/plugins/mage-forms/addons/thumbnails/mage_forms_pro.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
mage-forms/mage-forms.php 92% from 13 tests
"Mage Front End Forms" version 1.1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Domain Path: The domain path folder does not exist ("/lang/")
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
Success! There were no dangerous files found in this plugin12,205 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 1,159 | 108 | 8,488 |
PHP | 8 | 64 | 272 | 3,006 |
SVG | 2 | 0 | 0 | 403 |
JavaScript | 8 | 40 | 51 | 308 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 108 | |
▷ Named functions | 108 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
18 compressed PNG files occupy 0.23MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
source/img/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |
source/img/60pc_black.png | 0.11KB | 0.09KB | ▼ 12.84% |
addons/thumbnails/mage_listings.png | 18.84KB | 8.51KB | ▼ 54.83% |
source/img/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
source/img/gear.png | 1.14KB | 1.19KB | 0.00% |