Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼4.02ms] Passed 4 tests
An overview of server-side resources used by Complex Meta Fields
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 38.78 ▼4.08 |
Dashboard /wp-admin | 3.42 ▲0.11 | 45.61 ▼0.09 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 52.58 ▲4.06 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 84.77 ▼15.97 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 42.02 ▲6.70 |
Welcome /wp-admin/admin.php?page=wp_cmf | 3.31 | 31.68 |
Manage /wp-admin/admin.php?page=wp_cmf_manage | 3.38 | 34.31 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Complex Meta Fields: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲116 | 13.44 ▼0.95 | 1.81 ▼0.30 | 42.15 ▼8.58 |
Dashboard /wp-admin | 2,242 ▲54 | 5.16 ▼0.73 | 104.16 ▲6.07 | 74.98 ▲30.81 |
Posts /wp-admin/edit.php | 2,137 ▲48 | 2.36 ▲0.36 | 40.28 ▲5.16 | 37.12 ▲1.79 |
Add New Post /wp-admin/post-new.php | 1,711 ▲197 | 22.55 ▲4.94 | 595.65 ▼113.31 | 30.28 ▼27.25 |
Media Library /wp-admin/upload.php | 1,427 ▲39 | 4.56 ▲0.35 | 98.39 ▼4.44 | 79.22 ▲31.90 |
Welcome /wp-admin/admin.php?page=wp_cmf | 902 | 2.12 | 26.09 | 42.84 |
Manage /wp-admin/admin.php?page=wp_cmf_manage | 1,604 | 2.99 | 60.30 | 35.86 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% 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)
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 11× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/complex-meta-fields/includes/templates/form/image.php
- > /wp-content/plugins/complex-meta-fields/includes/templates/form/number.php
- > /wp-content/plugins/complex-meta-fields/includes/templates/form/radio.php
- > /wp-content/plugins/complex-meta-fields/includes/templates/form/email.php
- > /wp-content/plugins/complex-meta-fields/includes/templates/form/checkbox.php
- > /wp-content/plugins/complex-meta-fields/includes/templates/form/select.php
- > /wp-content/plugins/complex-meta-fields/includes/templates/form/text.php
- > /wp-content/plugins/complex-meta-fields/includes/templates/form/date.php
- > /wp-content/plugins/complex-meta-fields/includes/templates/form/richtext.php
- > /wp-content/plugins/complex-meta-fields/includes/templates/form/url.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: return in wp-content/plugins/complex-meta-fields/includes/templates/metabox.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/complex-meta-fields/includes/templates/metabox.php on line 8
- > PHP Notice
Undefined variable: metabox in wp-content/plugins/complex-meta-fields/includes/templates/metabox.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/complex-meta-fields/includes/templates/root-page.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/complex-meta-fields/includes/templates/manage-page.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/complex-meta-fields/complex_meta_fields.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/complex-meta-fields/includes/templates/metabox.php:12
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: multiple, post type, repeat, meta, custom fields...
complex-meta-fields/complex_meta_fields.php 85% from 13 tests
"Complex Meta Fields" version 1.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("complex-meta-fields.php" instead of "complex_meta_fields.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,027 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 125 | 272 | 745 |
PHP | 20 | 288 | 312 | 711 |
PO File | 1 | 84 | 91 | 301 |
LESS | 1 | 36 | 7 | 121 |
CSS | 2 | 1 | 10 | 113 |
JSON | 1 | 0 | 0 | 26 |
Markdown | 5 | 5 | 0 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 4 | 21.05% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 1.61KB | 0.81KB | ▼ 49.76% |