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: ▲1.31MB] [CPU: ▲2.51ms] Passed 4 tests
A check of server-side resources used by 1 Click WordPress Migration Plugin - 100% FREE
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.77 ▲1.30 | 46.61 ▲7.98 |
Dashboard /wp-admin | 4.67 ▲1.32 | 61.66 ▲1.57 |
Posts /wp-admin/edit.php | 4.72 ▲1.36 | 50.85 ▼0.33 |
Add New Post /wp-admin/post-new.php | 7.19 ▲1.30 | 98.03 ▲0.80 |
Media Library /wp-admin/upload.php | 4.53 ▲1.30 | 45.72 ▲15.38 |
One Click Migration /wp-admin/tools.php?page=one-click-migration | 4.50 | 41.01 |
Server storage [IO: ▲4.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 326 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by 1 Click WordPress Migration Plugin - 100% FREE
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.34 ▼0.37 | 1.90 ▲0.12 | 49.00 ▲1.24 |
Dashboard /wp-admin | 2,199 ▲22 | 5.73 ▲0.09 | 87.21 ▼3.94 | 42.51 ▲3.51 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.06 | 34.43 ▼2.90 | 35.48 ▲4.69 |
Add New Post /wp-admin/post-new.php | 1,529 ▼0 | 23.13 ▼0.20 | 591.65 ▼13.82 | 57.14 ▼4.58 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.23 ▲0.03 | 97.39 ▼3.81 | 42.97 ▲0.05 |
One Click Migration /wp-admin/tools.php?page=one-click-migration | 1,397 | 7.00 | 226.10 | 61.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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 90× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/1-click-migration/vendor/guzzlehttp/psr7/src/Uri.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/1-click-migration/vendor/guzzlehttp/psr7/src/InflateStream.php:17
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Finder\\Comparator\\Comparator' not found in wp-content/plugins/1-click-migration/vendor/symfony/finder/Comparator/NumberComparator.php:35
- > PHP Fatal error
Uncaught Error: Interface 'PhpZip\\Model\\Extra\\ZipExtraField' not found in wp-content/plugins/1-click-migration/vendor/nelexa/zip/src/Model/Extra/Fields/OldUnixExtraField.php:56
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/1-click-migration/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'PhpZip\\Model\\Extra\\ZipExtraField' not found in wp-content/plugins/1-click-migration/vendor/nelexa/zip/src/Model/Extra/Fields/ExtendedTimestampExtraField.php:67
- > PHP Fatal error
Uncaught Error: Class 'PhpZip\\Exception\\RuntimeException' not found in wp-content/plugins/1-click-migration/vendor/nelexa/zip/src/Exception/InvalidArgumentException.php:12
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/1-click-migration/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:7
- > PHP Fatal error
Uncaught Error: Interface 'PhpZip\\Constants\\DosAttrs' not found in wp-content/plugins/1-click-migration/vendor/nelexa/zip/src/Util/FileAttribUtil.php:13
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/1-click-migration/vendor/phpseclib/phpseclib/phpseclib/Crypt/RC4.php:54
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
- Screenshots: Please describe screenshot #1 in 1-click-migration/assets to your readme.txt
1-click-migration/one-click-migration.php 92% from 13 tests
The entry point to "1 Click WordPress Migration Plugin - 100% FREE" version 2.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("1-click-migration.php" instead of "one-click-migration.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin63,862 lines of code in 269 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 231 | 8,636 | 24,817 | 41,447 |
JavaScript | 4 | 3,284 | 2,159 | 14,399 |
Markdown | 17 | 1,283 | 0 | 4,959 |
CSS | 3 | 90 | 50 | 2,003 |
JSON | 11 | 0 | 0 | 1,010 |
YAML | 1 | 2 | 0 | 25 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 30.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 631.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 35 | |
Interfaces | 25 | |
Traits | 2 | |
Classes | 180 | |
▷ Abstract classes | 5 | 2.78% |
▷ Concrete classes | 175 | 97.22% |
▷ Final classes | 18 | 10.29% |
Methods | 2,209 | |
▷ Static methods | 280 | 12.68% |
▷ Public methods | 1,978 | 89.54% |
▷ Protected methods | 66 | 2.99% |
▷ Private methods | 165 | 7.47% |
Functions | 186 | |
▷ Named functions | 71 | 38.17% |
▷ Anonymous functions | 115 | 61.83% |
Constants | 453 | |
▷ Global constants | 33 | 7.28% |
▷ Class constants | 420 | 92.72% |
▷ Public constants | 420 | 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
26 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/check.png | 0.43KB | 0.53KB | 0.00% |
images/cloud-download.png | 0.34KB | 0.33KB | ▼ 1.45% |
images/mail.png | 0.39KB | 0.26KB | ▼ 32.16% |
images/refresh.png | 0.44KB | 0.34KB | ▼ 22.25% |
images/warning.png | 0.51KB | 0.35KB | ▼ 31.27% |