Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.46MB] [CPU: ▲0.20ms] Passed 4 tests
Server-side resources used by Duplica - Duplicate Posts, Pages, Custom Posts or Users
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 43.61 ▲3.08 |
Dashboard /wp-admin | 3.87 ▲0.52 | 52.64 ▼9.47 |
Posts /wp-admin/edit.php | 3.92 ▲0.57 | 55.84 ▲7.81 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.58 | 92.89 ▼0.64 |
Media Library /wp-admin/upload.php | 3.79 ▲0.56 | 46.22 ▲11.25 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
duplica_version |
theysaidso_admin_options |
pl-survey_duplica-activated |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
duplica_install_time |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Duplica - Duplicate Posts, Pages, Custom Posts or Users
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲153 | 13.50 ▼0.99 | 8.58 ▲6.96 | 42.78 ▲1.74 |
Dashboard /wp-admin | 2,215 ▲41 | 5.58 ▼0.02 | 81.63 ▼10.78 | 78.37 ▲37.62 |
Posts /wp-admin/edit.php | 2,138 ▲41 | 2.05 ▲0.01 | 36.78 ▼3.01 | 33.99 ▼3.33 |
Add New Post /wp-admin/post-new.php | 1,712 ▲184 | 22.09 ▼1.05 | 724.85 ▲33.00 | 58.39 ▲6.35 |
Media Library /wp-admin/upload.php | 1,435 ▲32 | 4.17 ▼0.03 | 107.17 ▲7.12 | 79.39 ▲34.62 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- 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
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/duplica/inc/functions.php on line 5
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/duplica/inc/functions.php on line 5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/duplica/inc/functions.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function duplica_site_url() in wp-content/plugins/duplica/views/settings/help.php:2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/duplica/inc/functions.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/duplica/inc/functions.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Codexpert\\Plugin\\Base' not found in wp-content/plugins/duplica/src/Settings.php:12
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/duplica/inc/functions.php on line 5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
6 plugin tags: clone posts, duplicate post, duplicate users, clone user, convert post...
duplica/duplica.php Passed 13 tests
The principal PHP file in "Duplica - Duplicate Posts, Pages, Custom Posts or Users" v. 0.6 is loaded by WordPress automatically on each request
79 characters long description:
Duplicate Posts, Pages, Custom Posts or Users - everything with a single click.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin5,620 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 1,164 | 1,345 | 4,163 |
CSS | 10 | 1 | 5 | 892 |
JavaScript | 8 | 13 | 1 | 292 |
JSON | 5 | 0 | 0 | 170 |
PO File | 1 | 37 | 37 | 101 |
Markdown | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 24.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 228.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 2 | 6.67% |
▷ Concrete classes | 28 | 93.33% |
▷ Final classes | 1 | 3.57% |
Methods | 271 | |
▷ Static methods | 26 | 9.59% |
▷ Public methods | 257 | 94.83% |
▷ Protected methods | 2 | 0.74% |
▷ Private methods | 12 | 4.43% |
Functions | 13 | |
▷ Named functions | 6 | 46.15% |
▷ Anonymous functions | 7 | 53.85% |
Constants | 6 | |
▷ Global constants | 6 | 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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/codexpert/plugin/src/assets/img/checked.png | 18.81KB | 9.90KB | ▼ 47.36% |
vendor/codexpert/plugin/src/assets/img/survey.png | 7.31KB | 3.08KB | ▼ 57.88% |