Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.32MB] [CPU: ▼290.50ms] Passed 4 tests
Analyzing server-side resources used by 1 Click WordPress Migration Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.89 ▲1.38 | 59.47 ▲10.63 |
Dashboard /wp-admin | 4.73 ▲1.32 | 39.86 ▲8.63 |
Posts /wp-admin/edit.php | 4.95 ▲1.31 | 44.28 ▲6.88 |
Add New Post /wp-admin/post-new.php | 8.26 ▲1.29 | 97.57 ▼1,182.42 |
Media Library /wp-admin/upload.php | 4.67 ▲1.38 | 31.43 ▲4.92 |
One Click Migration /wp-admin/tools.php?page=one-click-migration | 4.59 | 28.86 |
Server storage [IO: ▲2.74MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 292 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by 1 Click WordPress Migration Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲46 | 15.91 ▲0.13 | 6.51 ▲0.29 | 2.44 ▼0.67 |
Dashboard /wp-admin | 2,894 ▲43 | 6.13 ▼0.02 | 118.23 ▼12.78 | 160.00 ▼2.01 |
Posts /wp-admin/edit.php | 2,690 ▲6 | 3.23 ▼0.02 | 62.29 ▼7.47 | 139.92 ▼9.40 |
Add New Post /wp-admin/post-new.php | 1,714 ▲46 | 20.76 ▲3.23 | 434.71 ▲25.03 | 158.80 ▲2.60 |
Media Library /wp-admin/upload.php | 1,703 ▲8 | 5.45 ▼0.09 | 141.23 ▼23.81 | 187.38 ▼28.88 |
One Click Migration /wp-admin/tools.php?page=one-click-migration | 1,700 | 7.23 | 295.54 | 160.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
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
Please fix the following
- 88× PHP files trigger server errors when accessed directly (only 10 are shown):
- > 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 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/1-click-migration/vendor/guzzlehttp/psr7/src/PumpStream.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/1-click-migration/vendor/guzzlehttp/psr7/src/LimitStream.php:10
- > 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/ApkAlignmentExtraField.php:15
- > PHP Fatal error
Uncaught Error: Class 'PhpZip\\Model\\Extra\\Fields\\AbstractUnicodeExtraField' not found in wp-content/plugins/1-click-migration/vendor/nelexa/zip/src/Model/Extra/Fields/UnicodePathExtraField.php:50
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/1-click-migration/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/1-click-migration/vendor/guzzlehttp/psr7/src/UploadedFile.php:9
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/1-click-migration/vendor/guzzlehttp/guzzle/src/Pool.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/1-click-migration/vendor/guzzlehttp/psr7/src/BufferStream.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/1-click-migration/vendor/guzzlehttp/psr7/src/Request.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- 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
This is the main PHP file of "1 Click WordPress Migration Plugin" version 1.6.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin49,380 lines of code in 266 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 229 | 8,605 | 24,815 | 41,342 |
Markdown | 17 | 1,283 | 0 | 4,959 |
CSS | 3 | 80 | 49 | 1,565 |
JSON | 11 | 0 | 0 | 1,010 |
JavaScript | 3 | 136 | 46 | 460 |
YAML | 1 | 2 | 0 | 25 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 30.48 |
▷ 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,204 | |
▷ Static methods | 275 | 12.48% |
▷ Public methods | 1,973 | 89.52% |
▷ Protected methods | 66 | 2.99% |
▷ Private methods | 165 | 7.49% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin