Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼3.58ms] Passed 4 tests
This is a short check of server-side resources used by Magic Fields 2 Toolkit
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 41.32 ▲1.86 |
Dashboard /wp-admin | 3.46 ▲0.16 | 52.38 ▲0.70 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 50.93 ▲1.28 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 88.16 ▼18.15 |
Media Library /wp-admin/upload.php | 3.38 ▲0.16 | 41.49 ▲5.13 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 120 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Magic Fields 2 Toolkit
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.28 ▼0.27 | 1.63 ▲0.06 | 34.24 ▼10.12 |
Dashboard /wp-admin | 2,203 ▲29 | 5.62 ▲0.09 | 85.15 ▼8.83 | 41.80 ▼3.40 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.99 ▼0.03 | 40.65 ▲1.78 | 36.80 ▼0.10 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 23.11 ▼0.26 | 627.07 ▼77.51 | 34.26 ▼33.02 |
Media Library /wp-admin/upload.php | 1,402 ▼1 | 4.21 ▲0.02 | 96.08 ▼11.93 | 43.81 ▼4.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 29× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/magic-fields-2-toolkit/magic-fields-2-dumb-macros.php on line 28
- > PHP Warning
require_once(WP_PLUGIN_DIR/magic-fields-2-toolkit/alt_media_field.php): failed to open stream: No such file or directory in wp-content/plugins/magic-fields-2-toolkit/alt_video_field/alt_video_field.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magic-fields-2-toolkit/magic-fields-2-toolkit.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magic-fields-2-toolkit/magic-fields-2-clean-files_mf.php:23
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/magic-fields-2-toolkit/magic-fields-2-dumb-macros.php on line 28
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/magic-fields-2-toolkit/magic-fields-2-search-by-custom-field-kai.php:24
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/magic-fields-2-toolkit/magic-fields-2-dumb-macros.php on line 28
- > PHP Fatal error
Uncaught Error: Class 'mf_custom_fields' not found in wp-content/plugins/magic-fields-2-toolkit/alt_embed_field/alt_embed_field.php:3
- > PHP Fatal error
Uncaught Error: Class 'mf_custom_fields' not found in wp-content/plugins/magic-fields-2-toolkit/alt_url_field/alt_url_field.php:3
- > PHP Fatal error
Uncaught Error: Class 'mf_custom_fields' not found in wp-content/plugins/magic-fields-2-toolkit/alt_dropdown_field/alt_dropdown_field.php:11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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 your attention:
- Donate link: Invalid url: ""
magic-fields-2-toolkit/magic-fields-2-toolkit-loader.php 92% from 13 tests
"Magic Fields 2 Toolkit" version 1.2.1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("magic-fields-2-toolkit.php" instead of "magic-fields-2-toolkit-loader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin7,795 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 474 | 733 | 6,555 |
JavaScript | 5 | 25 | 78 | 732 |
CSS | 11 | 102 | 29 | 508 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 28.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 155.00 |
Average method complexity | 5.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 16 | |
▷ Abstract classes | 1 | 6.25% |
▷ Concrete classes | 15 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 23 | 34.85% |
▷ Public methods | 64 | 96.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.03% |
Functions | 156 | |
▷ Named functions | 39 | 25.00% |
▷ Anonymous functions | 117 | 75.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
66 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/mf2tk-jquery-ui/le-frog/images/ui-bg_highlight-soft_50_4eb305_1x100.png | 0.34KB | 0.19KB | ▼ 45.01% |
css/mf2tk-jquery-ui/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
alt_video_field/icon_gray.png | 3.13KB | 0.54KB | ▼ 82.81% |
css/mf2tk-jquery-ui/overcast/images/ui-bg_flat_0_eeeeee_40x100.png | 0.21KB | 0.08KB | ▼ 60.45% |
alt_dropdown_field/icon_gray.png | 3.08KB | 0.47KB | ▼ 84.63% |