Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼138.66ms] Passed 4 tests
A check of server-side resources used by Cleanup Duplicate Meta
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 39.61 ▲17.76 |
Dashboard /wp-admin | 3.22 ▲0.17 | 42.74 ▼3.49 |
Posts /wp-admin/edit.php | 3.27 ▲0.16 | 45.85 ▲2.34 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.09 | 103.72 ▼540.33 |
Media Library /wp-admin/upload.php | 3.10 ▲0.09 | 34.26 ▼13.16 |
Cleanup Duplicates /wp-admin/tools.php?page=cleanup_dup_meta | 3.08 | 31.58 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Cleanup Duplicate Meta
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 16.21 ▲0.77 | 9.82 ▲1.15 | 45.36 ▼7.04 |
Dashboard /wp-admin | 2,978 ▲44 | 5.90 ▼0.04 | 143.64 ▼8.48 | 113.89 ▲3.56 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.68 ▼0.02 | 60.27 ▼8.86 | 93.00 ▼5.83 |
Add New Post /wp-admin/post-new.php | 1,618 ▲3 | 21.36 ▲0.25 | 279.14 ▼16.58 | 119.25 ▲1.83 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.02 ▲0.05 | 154.32 ▼1.34 | 127.97 ▼0.26 |
Cleanup Duplicates /wp-admin/tools.php?page=cleanup_dup_meta | 1,353 | 2.27 | 61.29 | 98.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/cleanup-duplicate-meta/class-plugin.php
- > /wp-content/plugins/cleanup-duplicate-meta/plugin.php
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/cleanup-duplicate-meta/lib/config/postmeta.php:17
- > PHP Notice
Trying to get property 'usermeta' of non-object in wp-content/plugins/cleanup-duplicate-meta/lib/config/usermeta.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/cleanup-duplicate-meta/lib/views/menu-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/cleanup-duplicate-meta/lib/views/meta.php:3
- > PHP Notice
Trying to get property 'postmeta' of non-object in wp-content/plugins/cleanup-duplicate-meta/lib/config/postmeta.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/cleanup-duplicate-meta/lib/views/duplicates.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/cleanup-duplicate-meta/lib/config/plugin.php:9
- > PHP Warning
Use of undefined constant CLEANUP_DUP_META_PLUGIN_DIR - assumed 'CLEANUP_DUP_META_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/cleanup-duplicate-meta/lib/config/plugin.php on line 6
- > PHP Fatal error
Uncaught Error: Interface 'Cleanup_Dup_Meta\\Models\\I_Model' not found in wp-content/plugins/cleanup-duplicate-meta/lib/models/class-model.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/cleanup-duplicate-meta/lib/config/usermeta.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (The plugin's page in Tools > 'Cleanup Duplicates'.), #2 (Screen for both the Post Meta and User Meta controls.), #3 (An example of the table generated when clicking on 'Check for Duplicates' button. The results are sorted by meta key.), #4 (After clicking on the 'Count Duplicates' button, notification is displayed of the number of duplicates found (which could be deleted).), #5 (The message after clicking on 'Cleanup Post Meta'.)
cleanup-duplicate-meta/plugin.php 85% from 13 tests
The main PHP script in "Cleanup Duplicate Meta" version 1.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("cleanup-duplicate-meta.php" instead of "plugin.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin862 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 182 | 473 | 648 |
JavaScript | 2 | 48 | 124 | 132 |
JSON | 1 | 1 | 0 | 34 |
Sass | 1 | 8 | 0 | 26 |
CSS | 2 | 5 | 0 | 22 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 2 | 4.44% |
▷ Public methods | 38 | 84.44% |
▷ Protected methods | 6 | 13.33% |
▷ Private methods | 1 | 2.22% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.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
5 PNG files occupy 0.38MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 65.25KB | 15.45KB | ▼ 76.32% |
screenshot-1.png | 149.54KB | 42.80KB | ▼ 71.38% |
screenshot-3.png | 51.42KB | 12.67KB | ▼ 75.36% |
screenshot-2.png | 65.50KB | 16.99KB | ▼ 74.06% |
screenshot-4.png | 57.91KB | 14.60KB | ▼ 74.79% |