Benchmarks
Plugin footprint 48% 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: ▲1.64MB] [CPU: ▲12.53ms] Passed 4 tests
Server-side resources used by InstaWP Connect - 1-click WP Staging & Migration
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.20 ▲1.74 | 56.23 ▲16.92 |
Dashboard /wp-admin | 4.92 ▲1.57 | 59.31 ▼1.65 |
Posts /wp-admin/edit.php | 4.95 ▲1.60 | 67.30 ▲19.02 |
Add New Post /wp-admin/post-new.php | 7.69 ▲1.80 | 111.61 ▲17.76 |
Media Library /wp-admin/upload.php | 4.87 ▲1.64 | 52.82 ▲17.10 |
InstaWP /wp-admin/tools.php?page=instawp | 4.83 | 58.98 |
Server storage [IO: ▲1.01MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 127 new files
Database: 4 new tables, 10 new options
New tables |
---|
wp_instawp_events |
wp_instawp_event_sites |
wp_instawp_sync_history |
wp_instawp_event_sync_logs |
New WordPress options |
---|
can_compress_scripts |
instawp_last_heartbeat_sent |
instawp_sync_tab_roles |
instawp_large_files_list |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
instawp_default_user |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for InstaWP Connect - 1-click WP Staging & Migration
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲94 | 14.73 ▲0.39 | 1.76 ▼0.43 | 37.08 ▼13.93 |
Dashboard /wp-admin | 2,257 ▲77 | 4.95 ▼0.63 | 102.80 ▲5.17 | 41.51 ▼1.02 |
Posts /wp-admin/edit.php | 2,162 ▲59 | 2.40 ▲0.43 | 41.26 ▲0.21 | 35.70 ▲3.19 |
Add New Post /wp-admin/post-new.php | 1,581 ▲55 | 23.23 ▲0.10 | 578.48 ▼43.93 | 27.87 ▼25.27 |
Media Library /wp-admin/upload.php | 1,456 ▲59 | 4.51 ▲0.32 | 99.40 ▲1.82 | 41.33 ▲0.91 |
InstaWP /wp-admin/tools.php?page=instawp | 1,431 | 2.57 | 54.92 | 50.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/instawp-connect/uninstall.php+96
Constant INSTAWP_MAIN_SCHEDULE_EVENT already defined
- The uninstall procedure failed, leaving 4 tables in the database
- wp_instawp_sync_history
- wp_instawp_events
- wp_instawp_event_sync_logs
- wp_instawp_event_sites
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-posts
- instawp_default_user
- widget_recent-comments
- instawp_last_heartbeat_sent
- widget_theysaidso_widget
- db_upgraded
- instawp_sync_tab_roles
- can_compress_scripts
- theysaidso_admin_options
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
Everything seems fine, however this is by no means 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
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/instawp-connect/migrate/templates/main-migrate.php:11
- > PHP Fatal error
Uncaught Error: Class 'InstaWP_Setting' not found in wp-content/plugins/instawp-connect/migrate/templates/navbar.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/instawp-connect/migrate/templates/part-create-error.php:6
- > PHP Fatal error
Uncaught Error: Class 'InstaWP_Setting' not found in wp-content/plugins/instawp-connect/migrate/templates/part-settings.php:11
- > PHP Fatal error
Uncaught Error: Class 'InstaWP_Setting' not found in wp-content/plugins/instawp-connect/migrate/templates/part-create.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/instawp-connect/migrate/templates/ajax/part-sync-items.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/instawp-connect/includes/class-instawp-cli.php:17
- > PHP Fatal error
Uncaught Error: Class 'InstaWP_Sync_Admin' not found in wp-content/plugins/instawp-connect/migrate/templates/part-sync.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function instawp() in wp-content/plugins/instawp-connect/migrate/templates/main.php:17
- > PHP Fatal error
Uncaught Error: Class 'InstaWP_Setting' not found in wp-content/plugins/instawp-connect/migrate/templates/part-manage.php:11
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: staging, backup, clone, migrate, restore
instawp-connect/instawp-connect.php Passed 13 tests
This is the main PHP file of "InstaWP Connect - 1-click WP Staging & Migration" version 0.1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
53 characters long description:
1-click WP Staging with Sync. Manage your Live sites.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin17,595 lines of code in 115 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 64 | 2,377 | 1,963 | 10,539 |
CSS | 12 | 352 | 93 | 2,788 |
JSON | 2 | 2 | 0 | 2,631 |
JavaScript | 5 | 229 | 66 | 1,252 |
SVG | 30 | 1 | 0 | 278 |
Sass | 1 | 12 | 0 | 106 |
Markdown | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 160)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 38.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 245.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 160.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 37 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 419 | |
▷ Static methods | 104 | 24.82% |
▷ Public methods | 398 | 94.99% |
▷ Protected methods | 4 | 0.95% |
▷ Private methods | 17 | 4.06% |
Functions | 54 | |
▷ Named functions | 32 | 59.26% |
▷ Anonymous functions | 22 | 40.74% |
Constants | 73 | |
▷ Global constants | 72 | 98.63% |
▷ Class constants | 1 | 1.37% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
migrate/assets/images/check-icon.png | 0.97KB | 0.73KB | ▼ 25.35% |
migrate/assets/images/logo.png | 3.64KB | 2.36KB | ▼ 35.15% |
migrate/assets/images/globe-icon.png | 0.59KB | 0.40KB | ▼ 32.29% |
migrate/assets/images/createsite.png | 21.51KB | 8.63KB | ▼ 59.89% |