Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.63ms] Passed 4 tests
A check of server-side resources used by Zen Custom Fields
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 34.83 ▼8.20 |
Dashboard /wp-admin | 3.35 ▲0.04 | 44.36 ▼6.09 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.55 ▼0.52 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 90.26 ▲0.28 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.91 ▲5.69 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Zen Custom Fields
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.19 ▼1.16 | 1.67 ▼0.43 | 39.18 ▼11.56 |
Dashboard /wp-admin | 2,206 ▲15 | 4.88 ▼0.00 | 107.98 ▼8.03 | 39.23 ▼6.89 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.05 ▲0.01 | 40.20 ▲4.57 | 33.92 ▲0.44 |
Add New Post /wp-admin/post-new.php | 1,514 ▼20 | 17.73 ▼5.34 | 581.19 ▼55.27 | 55.69 ▼16.80 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.20 ▲0.01 | 97.17 ▼1.93 | 42.55 ▲0.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/zen-custom-fields/zen-custom-fileds.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: custom templates, custom fields, custom keys, custom values, post meta
zen-custom-fields/zen-custom-fileds.php 92% from 13 tests
The main PHP script in "Zen Custom Fields" version 1.16 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("zen-custom-fields.php" instead of "zen-custom-fileds.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 detected328 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 19 | 17 | 247 |
Markdown | 1 | 31 | 0 | 81 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 47.00 |
▷ Minimum class complexity | 47.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 7.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 71.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 28.57% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin