Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.47ms] Passed 4 tests
Analyzing server-side resources used by UnCopy
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.95 ▲3.06 |
Dashboard /wp-admin | 3.36 ▲0.05 | 48.29 ▲0.73 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 43.94 ▼3.08 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 79.19 ▼22.59 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.38 ▲3.47 |
Server storage [IO: ▲1.34MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 53 new files
Database: no new tables, 18 new options
New WordPress options |
---|
uncopy_settings_javascript_image_text_dragging |
uncopy_settings_javascript_right_click |
uncopy_settings_general_html |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
uncopy_settings_general_js |
uncopy_settings |
widget_recent-comments |
uncopy_settings_javascript_developer_tools_msg |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for UnCopy
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲46 | 13.27 ▼1.48 | 4.73 ▲2.94 | 43.08 ▲0.59 |
Dashboard /wp-admin | 2,211 ▲20 | 5.89 ▲0.95 | 112.26 ▲9.27 | 74.53 ▲29.63 |
Posts /wp-admin/edit.php | 2,103 ▲11 | 2.02 ▼0.03 | 33.08 ▼10.53 | 33.03 ▼4.96 |
Add New Post /wp-admin/post-new.php | 1,682 ▲163 | 22.39 ▼0.90 | 698.23 ▲16.40 | 43.04 ▼14.52 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.20 ▼0.08 | 98.72 ▼3.73 | 74.98 ▲28.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 18 options
- uncopy_settings_general_css
- uncopy_settings_general_js
- uncopy_settings_javascript_text_selection
- widget_recent-comments
- uncopy_settings_general_html
- theysaidso_admin_options
- widget_recent-posts
- uncopy_settings_javascript_image_text_dragging
- uncopy_settings_html_disabled_js_msg
- uncopy_settings_javascript_right_click
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (17 tag instead of maximum 10)
uncopy/uncopy.php 92% from 13 tests
The primary PHP file in "UnCopy" version 1.1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 172 characters long)
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
Good job! No executable or dangerous file extensions detected3,752 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 407 | 19 | 2,935 |
PHP | 18 | 126 | 38 | 751 |
JavaScript | 2 | 5 | 4 | 36 |
SVG | 8 | 0 | 0 | 30 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
20 PNG files occupy 1.21MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/logo.png | 5.41KB | 5.54KB | 0.00% |
assets/screenshot-3.png | 199.51KB | 57.24KB | ▼ 71.31% |
assets/screenshot-7.png | 83.20KB | 20.73KB | ▼ 75.09% |
assets/screenshot-6.png | 173.22KB | 48.27KB | ▼ 72.14% |
frontend/images/logo-lg.png | 12.13KB | 12.24KB | 0.00% |