Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.05ms] Passed 4 tests
Server-side resources used by Bulk Marketpress Product Category Copier
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 40.96 ▼2.21 |
Dashboard /wp-admin | 3.35 ▲0.01 | 55.52 ▼14.81 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 51.84 ▼1.13 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 91.51 ▼10.03 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 39.71 ▲3.23 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Bulk Marketpress Product Category Copier: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.69 ▲0.14 | 1.88 ▼0.16 | 43.24 ▼0.90 |
Dashboard /wp-admin | 2,192 ▲12 | 5.55 ▼0.17 | 84.13 ▼5.37 | 39.35 ▼2.29 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.99 ▼0.03 | 34.89 ▼4.88 | 34.73 ▼1.51 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.13 ▲5.55 | 645.90 ▼58.82 | 56.44 ▼0.31 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.30 ▲0.09 | 93.96 ▼9.65 | 41.86 ▼5.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/marketpress-category-copier/inc/options.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/marketpress-category-copier/lib/MarketpressCategoryCopier.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/marketpress-category-copier/inc/log.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/marketpress-category-copier/marketpress-category-copier.php:32
- > PHP Fatal error
Uncaught Error: Class 'Walker' not found in wp-content/plugins/marketpress-category-copier/lib/MarketpressCategoryWalker.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: marketpress, multisite, copier, copy, bulk...
marketpress-category-copier/marketpress-category-copier.php 92% from 13 tests
The principal PHP file in "Bulk Marketpress Product Category Copier" v. 1.2.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected6,538 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 3 | 64 | 0 | 3,167 |
JavaScript | 6 | 245 | 68 | 2,359 |
CSS | 4 | 63 | 36 | 653 |
PHP | 5 | 189 | 177 | 359 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 72.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 27.78% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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.png | 0.53KB | 0.88KB | 0.00% |
inc/chosen.jquery/docsupport/oss-credit.png | 4.30KB | 3.26KB | ▼ 24.02% |
inc/chosen.jquery/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
inc/chosen.jquery/docsupport/chosen.png | 1.47KB | 2.08KB | 0.00% |