Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼0.06ms] Passed 4 tests
Analyzing server-side resources used by Network Menu Copier
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.61 ▼1.55 |
Dashboard /wp-admin | 3.38 ▲0.08 | 48.10 ▲2.04 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 46.55 ▲1.43 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 103.60 ▲8.18 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.25 ▼2.16 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Network Menu Copier
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.17 ▼1.13 | 1.77 ▼0.71 | 42.95 ▼6.98 |
Dashboard /wp-admin | 2,206 ▲21 | 4.85 ▲0.02 | 129.24 ▲19.99 | 40.74 ▼8.63 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.99 ▼0.18 | 36.31 ▲0.42 | 36.68 ▲3.94 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.52 ▼4.69 | 644.94 ▼71.55 | 54.02 ▼2.52 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.15 ▼0.08 | 94.62 ▼17.43 | 40.58 ▼5.16 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/network-copier/inc/options.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/network-copier/network-copier.php:32
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/network-copier/lib/NetworkMenuWalker.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/network-copier/lib/NetworkMenuCopier.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/network-copier/inc/log.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: menu, network, multisite, copy, copier...
network-copier/network-copier.php 85% from 13 tests
The main PHP script in "Network Menu Copier" version 1.2.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin6,638 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 3 | 64 | 0 | 3,167 |
JavaScript | 6 | 229 | 62 | 2,338 |
CSS | 4 | 63 | 36 | 653 |
PHP | 7 | 290 | 273 | 480 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 1 | 2.94% |
▷ Public methods | 26 | 76.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 23.53% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/chosen.jquery/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
inc/chosen.jquery/docsupport/oss-credit.png | 4.30KB | 3.26KB | ▼ 24.02% |
inc/chosen.jquery/docsupport/chosen.png | 1.47KB | 2.08KB | 0.00% |
inc/chosen.jquery/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |