Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.32ms] Passed 4 tests
This is a short check of server-side resources used by DX Remove Unused Custom Fields
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.81 ▼3.47 |
Dashboard /wp-admin | 3.32 ▲0.01 | 51.34 ▼13.42 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.80 ▼13.03 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 99.70 ▼3.34 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.19 ▲5.98 |
Remove Unused CF /wp-admin/options-general.php?page=remove_unused_cf | 3.20 | 36.08 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for DX Remove Unused Custom Fields
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.34 ▼0.28 | 1.65 ▼0.07 | 39.13 ▼0.56 |
Dashboard /wp-admin | 2,196 ▲16 | 5.57 ▼0.03 | 92.39 ▼2.93 | 40.72 ▼0.54 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.01 | 38.43 ▲1.95 | 37.25 ▲2.35 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.34 ▲0.20 | 678.37 ▲27.54 | 61.72 ▲10.41 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.21 ▲0.00 | 101.70 ▼5.34 | 43.34 ▼1.04 |
Remove Unused CF /wp-admin/options-general.php?page=remove_unused_cf | 772 | 2.02 | 24.51 | 27.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/dx-remove-unused-custom-fields/remove-unused-cf-admin-view.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dx-remove-unused-custom-fields/dx-remove-unused-custom-fields.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 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: post-types, clean, plugin, delete, database
dx-remove-unused-custom-fields/dx-remove-unused-custom-fields.php Passed 13 tests
Analyzing the main PHP file in "DX Remove Unused Custom Fields" version 0.1
71 characters long description:
Delete custom fields from postmeta table for posts that no longer exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected56 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 21 | 38 | 52 |
Markdown | 1 | 2 | 0 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
No PNG files were detected