Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼5.75ms] Passed 4 tests
Analyzing server-side resources used by Toolazy Custom Fields
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 43.31 ▲0.87 |
Dashboard /wp-admin | 3.41 ▲0.11 | 50.22 ▼4.58 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 53.10 ▲6.79 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 90.09 ▼19.99 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.94 ▲0.72 |
Introduce /wp-admin/admin.php?page=toolazy-custom-fields/menu-views/introduce.view.php | 3.30 | 35.55 |
Setting /wp-admin/admin.php?page=toolazy-custom-fields/menu-views/setting.view.php | 3.30 | 34.48 |
Server storage [IO: ▲1.35MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 70 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_tcf_custom_fields |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
tcf_db_version |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Toolazy Custom Fields
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.35 ▼0.01 | 1.65 ▼0.01 | 43.46 ▲0.43 |
Dashboard /wp-admin | 2,225 ▲48 | 5.63 ▲0.11 | 90.22 ▼0.65 | 41.25 ▲1.49 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.03 ▲0.08 | 38.85 ▼0.82 | 38.35 ▲2.17 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 23.71 ▲0.73 | 654.96 ▼67.11 | 55.12 ▼22.66 |
Media Library /wp-admin/upload.php | 1,427 ▲33 | 4.29 ▲0.06 | 99.25 ▼12.89 | 43.53 ▼5.06 |
Introduce /wp-admin/admin.php?page=toolazy-custom-fields/menu-views/introduce.view.php | 874 | 2.32 | 38.22 | 27.10 |
Setting /wp-admin/admin.php?page=toolazy-custom-fields/menu-views/setting.view.php | 831 | 2.53 | 45.46 | 27.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_tcf_custom_fields
- This plugin did not uninstall successfully, leaving 7 options in the database
- tcf_db_version
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 20× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/toolazy-custom-fields/migration/TCF-Migration.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/toolazy-custom-fields/migration/TCF-Migration.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/toolazy-custom-fields/custom-field-layouts/input.layout.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/toolazy-custom-fields/custom-field-layouts/textarea.layout.php:11
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/toolazy-custom-fields/migration/TCF-Migration.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toolazy-custom-fields/api/TCF-Common.api.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/toolazy-custom-fields/custom-field-layouts/checkbox.layout.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/toolazy-custom-fields/menu-views/introduce.view.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toolazy-custom-fields/api/TCF-Common.api.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/toolazy-custom-fields/custom-field-layouts/file.layout.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=toolazy-custom-fields/menu-views/setting.view.php
- > Network (severe)
wp-json/tcf/v1/check-plugin-active - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=toolazy-custom-fields/menu-views/setting.view.php
- > Network (severe)
wp-json/tcf/v1/get-custom-field-types - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=toolazy-custom-fields/menu-views/setting.view.php
- > Network (severe)
wp-json/tcf/v1/get-post-types - 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
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: A description for screenshot #2 is required in toolazy-custom-fields/assets to your readme.txt
toolazy-custom-fields/toolazy-cf.php 92% from 13 tests
The primary PHP file in "Toolazy Custom Fields" version 0.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("toolazy-custom-fields.php" instead of "toolazy-cf.php")
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 detected12,752 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 9,010 |
JavaScript | 27 | 200 | 270 | 1,863 |
PHP | 19 | 262 | 324 | 1,345 |
Sass | 5 | 64 | 13 | 451 |
Markdown | 2 | 12 | 0 | 64 |
CSS | 1 | 3 | 0 | 19 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 1.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 17 | 48.57% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 1 | 6.67% |
▷ Anonymous functions | 14 | 93.33% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.56MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/file.png | 2.09KB | 1.56KB | ▼ 25.12% |
assets/screenshot-2.png | 279.14KB | 74.44KB | ▼ 73.33% |
assets/icon-128x128.png | 5.30KB | 3.17KB | ▼ 40.13% |
assets/screenshot-1.png | 211.94KB | 53.76KB | ▼ 74.63% |
assets/banner-772x250.png | 53.13KB | 13.19KB | ▼ 75.17% |