Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.71ms] Passed 4 tests
This is a short check of server-side resources used by CMC MIGRATE
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.73 ▼1.93 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.86 ▲1.69 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.32 ▼0.53 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 88.21 ▼9.46 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.16 ▲1.09 |
CMC Migrate /wp-admin/tools.php?page=cmcmg | 3.29 | 30.34 |
Server storage [IO: ▲1.54MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- You have illegally modified 1 file (0.01KB) outside of "wp-content/plugins/cmc-migrate/" and "wp-content/uploads/"
- (new file) wp-content/cmc-migrate/export/.htaccess
Filesystem: 71 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
cmc_migrate_settings |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for CMC MIGRATE
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.65 ▼0.71 | 4.45 ▲2.64 | 41.93 ▼4.53 |
Dashboard /wp-admin | 2,210 ▲22 | 4.90 ▼0.96 | 107.67 ▼3.42 | 39.36 ▼20.36 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.05 ▲0.05 | 40.44 ▲0.11 | 34.95 ▼1.36 |
Add New Post /wp-admin/post-new.php | 1,540 ▼2 | 23.37 ▲5.12 | 654.61 ▲54.77 | 53.02 ▼9.62 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.18 ▼0.08 | 96.80 ▼1.48 | 44.92 ▼2.46 |
CMC Migrate /wp-admin/tools.php?page=cmcmg | 1,118 | 1.91 | 26.96 | 29.31 |
Uninstaller [IO: ▲1.54MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the followingThis plugin did not uninstall successfully, leaving 8 options in the database
- This plugin cannot be uninstalled
- > Error in wp-content/plugins/cmc-migrate/uninstall.php+30
Uncaught Error: Call to undefined method cmc_migrate::get_setting() in wp-content/plugins/cmc-migrate/uninstall.php:30
Stack trace:
#0 wp-admin/includes/plugin.php(1245): include_once()
#1 wp-admin/includes/plugin.php(960): uninstall_plugin() - The plugin did not uninstall successfully, leaving 71 files (1.54MB) in the plugin directory
- (new file) assets/css/font-awesome/fonts/FontAwesome.otf
- (new file) assets/css/font-awesome/fonts/fontawesome-webfont.eot
- (new file) assets/css/font-awesome/fonts/fontawesome-webfont.svg
- (new file) assets/css/font-awesome/css/font-awesome.min.css
- (new file) assets/css/font-awesome/css/font-awesome.css
- (new file) assets/css/font-awesome/less/animated.less
- (new file) assets/css/font-awesome/fonts/fontawesome-webfont.ttf
- (new file) assets/css/font-awesome/HELP-US-OUT.txt
- (new file) assets/css/font-awesome/fonts/fontawesome-webfont.woff
- (new file) assets/css/font-awesome/fonts/fontawesome-webfont.woff2
- ...
- recovery_mode_email_last_sent
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- cmc_migrate_settings
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=cmcmg
- > Notice in wp-content/plugins/cmc-migrate/page/admin.php+139
Undefined index: active
- 10 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=cmcmg
- > Notice in wp-content/plugins/cmc-migrate/page/admin.php+140
Undefined index: class
- 5 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=cmcmg
- > Notice in wp-content/plugins/cmc-migrate/page/admin.php+141
Undefined index: atts
- > GET request to /wp-admin/tools.php?page=cmcmg
- > Notice in wp-content/plugins/cmc-migrate/page/admin.php+147
Undefined index: section
- 3 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=cmcmg
- > Notice in wp-content/plugins/cmc-migrate/include/class-cmc-migration-table.php+174
Undefined index: location
- > GET request to /wp-admin/tools.php?page=cmcmg
- > Notice in wp-content/plugins/cmc-migrate/include/class-cmc-migration-table.php+61
Undefined offset: 0
SRP Passed 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
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
There were no browser issues found
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
4 plugin tags: singlesite, export, multisite, migration
cmc-migrate/cmc-migrate.php 92% from 13 tests
The entry point to "CMC MIGRATE" version 0.0.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin13,368 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 103 | 139 | 4,870 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 17 | 280 | 643 | 2,144 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
JavaScript | 2 | 14 | 41 | 157 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 41.57 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 4.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 82 | |
▷ Static methods | 65 | 79.27% |
▷ Public methods | 63 | 76.83% |
▷ Protected methods | 5 | 6.10% |
▷ Private methods | 14 | 17.07% |
Functions | 14 | |
▷ Named functions | 1 | 7.14% |
▷ Anonymous functions | 13 | 92.86% |
Constants | 21 | |
▷ Global constants | 21 | 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
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/jquery-ui/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
assets/css/jquery-ui/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
assets/css/jquery-ui/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/css/jquery-ui/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
assets/css/jquery-ui/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |