Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼0.73ms] 75% from 4 tests
Server-side resources used by KH Remove Duplicates
Please have a look at the following items
- CPU: You should keep total CPU usage under 500.00ms (currently 7,857.46ms on /wp-admin/options-general.php?page=remove-duplicate-posts)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.65 ▼2.13 |
Dashboard /wp-admin | 3.39 ▲0.09 | 56.36 ▲4.12 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 48.96 ▲4.64 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 95.03 ▼0.25 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.46 ▼4.67 |
Remove Duplicate Posts /wp-admin/options-general.php?page=remove-duplicate-posts | 3.29 | 7,857.46 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
KH Remove Duplicates: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲159 | 13.60 ▼0.77 | 5.55 ▲3.39 | 48.05 ▲1.87 |
Dashboard /wp-admin | 2,211 ▲29 | 5.78 ▲0.84 | 100.79 ▼23.18 | 43.19 ▲0.28 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.01 ▲0.01 | 34.76 ▼2.31 | 34.42 ▼0.14 |
Add New Post /wp-admin/post-new.php | 1,532 ▲18 | 18.30 ▲0.66 | 586.41 ▼166.17 | 55.06 ▲0.59 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.18 ▼0.06 | 102.62 ▼9.86 | 44.47 ▼5.48 |
Remove Duplicate Posts /wp-admin/options-general.php?page=remove-duplicate-posts | 892 | 2.07 | 24.83 | 32.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/knowhalim-remove-duplicates/admin/partials/kh-remove-duplicates-admin-display.php
- > /wp-content/plugins/knowhalim-remove-duplicates/public/partials/kh-remove-duplicates-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/knowhalim-remove-duplicates/admin/class-kh-remove-duplicates-admin.php:301
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: duplicate, remove duplicate
knowhalim-remove-duplicates/kh-remove-duplicates.php 85% from 13 tests
The main PHP script in "KH Remove Duplicates" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("knowhalim-remove-duplicates.php" instead of "kh-remove-duplicates.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
Everything looks great! No dangerous files found in this plugin410 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 175 | 536 | 359 |
CSS | 2 | 6 | 8 | 26 |
JavaScript | 2 | 8 | 35 | 25 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 3.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
PNG images were not found in this plugin