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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼4.75ms] Passed 4 tests
An overview of server-side resources used by Copy Nav Menu Items
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 40.03 ▼2.66 |
Dashboard /wp-admin | 3.45 ▲0.11 | 56.71 ▼6.08 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 50.90 ▼0.00 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 92.21 ▼10.24 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 42.27 ▲3.15 |
Copy Nav Menu Items /wp-admin/options-general.php?page=copy_nav_menu_items_settings | 3.55 | 35.60 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
copy_nav_menu_items_version |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Copy Nav Menu Items
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 13.17 ▼1.18 | 4.78 ▲3.12 | 42.27 ▲0.43 |
Dashboard /wp-admin | 2,225 ▲28 | 5.88 ▲0.05 | 115.05 ▲11.85 | 43.48 ▲1.28 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.02 ▲0.00 | 34.80 ▼3.20 | 32.49 ▼4.70 |
Add New Post /wp-admin/post-new.php | 1,548 ▲3 | 23.34 ▼0.02 | 670.03 ▼2.83 | 59.88 ▲4.48 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▼0.03 | 102.49 ▼9.44 | 43.56 ▼1.00 |
Copy Nav Menu Items /wp-admin/options-general.php?page=copy_nav_menu_items_settings | 1,182 | 2.75 | 49.74 | 49.40 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- copy_nav_menu_items_version
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: items, item, menu, copy, nav
copy-nav-menu-items/copy-nav-menu-items.php Passed 13 tests
The principal PHP file in "Copy Nav Menu Items" v. 1.1.3 is loaded by WordPress automatically on each request
78 characters long description:
Simple plugin that allows for nav menu items to be copied with a single click.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin4,357 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 469 | 1,763 | 1,848 |
CSS | 4 | 37 | 3 | 1,439 |
JavaScript | 4 | 395 | 3 | 1,064 |
JSON | 1 | 0 | 0 | 6 |
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.61 |
Average class complexity | 12.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 2 | 10.00% |
▷ Concrete classes | 18 | 90.00% |
▷ Final classes | 18 | 100.00% |
Methods | 91 | |
▷ Static methods | 35 | 38.46% |
▷ Public methods | 74 | 81.32% |
▷ Protected methods | 12 | 13.19% |
▷ Private methods | 5 | 5.49% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 26 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 26 | 100.00% |
▷ Public constants | 26 | 100.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
8 PNG files occupy 0.44MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/debug/images/robert-noakes.png | 6.28KB | 5.31KB | ▼ 15.39% |
assets/debug/images/YourWordPressDXP300x600.png | 136.86KB | 60.69KB | ▼ 55.65% |
assets/release/images/robert-noakes.png | 6.28KB | 5.31KB | ▼ 15.39% |
assets/release/images/noakes-plugins.png | 8.04KB | 6.25KB | ▼ 22.23% |
assets/release/images/YourWordPressDXP728x90.png | 73.03KB | 33.27KB | ▼ 54.44% |