Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼3.16ms] Passed 4 tests
An overview of server-side resources used by WP移行専用プラグイン for CPI
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 34.34 ▼5.36 |
Dashboard /wp-admin | 3.51 ▲0.20 | 44.76 ▼5.53 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 49.32 ▲1.36 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 85.21 ▼1.33 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 36.43 ▼0.41 |
Export /wp-admin/admin.php?page=cpiwm_export | 3.46 | 32.04 |
Backups /wp-admin/admin.php?page=cpiwm_backups | 3.47 | 33.39 |
Import /wp-admin/admin.php?page=cpiwm_import | 3.46 | 27.91 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please try to fix the following items
- You have illegally modified 3 files (0.49KB) outside of "wp-content/plugins/cpi-wp-migration/" and "wp-content/uploads/"
- (new file) wp-content/cpiwm-backups/.htaccess
- (new file) wp-content/cpiwm-backups/index.php
- (new file) wp-content/cpiwm-backups/web.config
Filesystem: 164 new files
Database: no new tables, 7 new options
New WordPress options |
---|
cpiwm_secret_key |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP移行専用プラグイン for CPI
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲109 | 13.22 ▼1.23 | 2.13 ▲0.41 | 40.49 ▼1.59 |
Dashboard /wp-admin | 2,233 ▲45 | 5.88 ▲0.97 | 109.54 ▼8.44 | 41.81 ▼1.30 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 1.99 ▲0.03 | 34.45 ▼2.01 | 31.83 ▼1.07 |
Add New Post /wp-admin/post-new.php | 1,538 ▼4 | 17.74 ▼0.51 | 665.78 ▲25.83 | 51.74 ▼0.97 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.22 ▼0.07 | 99.98 ▼0.96 | 47.81 ▲1.94 |
Export /wp-admin/admin.php?page=cpiwm_export | 1,004 | 1.91 | 27.31 | 46.53 |
Backups /wp-admin/admin.php?page=cpiwm_backups | 894 | 1.72 | 29.22 | 27.89 |
Import /wp-admin/admin.php?page=cpiwm_import | 873 | 1.71 | 22.60 | 40.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- cpiwm_updater
- widget_recent-comments
- 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 135× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/cpi-wp-migration/lib/view/updater/modal.php
- > /wp-content/plugins/cpi-wp-migration/lib/model/import/class-cpiwm-import-enumerate.php
- > /wp-content/plugins/cpi-wp-migration/lib/view/export/button-webdav.php
- > /wp-content/plugins/cpi-wp-migration/lib/view/export/export-buttons.php
- > /wp-content/plugins/cpi-wp-migration/lib/model/class-cpiwm-backups.php
- > /wp-content/plugins/cpi-wp-migration/lib/view/export/export-permissions.php
- > /wp-content/plugins/cpi-wp-migration/lib/model/class-cpiwm-template.php
- > /wp-content/plugins/cpi-wp-migration/lib/model/class-cpiwm-extensions.php
- > /wp-content/plugins/cpi-wp-migration/lib/vendor/servmask/archiver/class-cpiwm-archiver.php
- > /wp-content/plugins/cpi-wp-migration/lib/vendor/servmask/iterator/class-cpiwm-recursive-iterator-iterator.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: migration
cpi-wp-migration/cpi-wp-migration.php 85% from 13 tests
The main PHP file in "WP移行専用プラグイン for CPI" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
- Description: Please keep the plugin description shorter than 140 characters (currently 220 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin11,424 lines of code in 138 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 120 | 2,313 | 6,431 | 8,023 |
JavaScript | 6 | 1,019 | 1,420 | 3,180 |
SVG | 2 | 5 | 1 | 211 |
CSS | 10 | 0 | 0 | 10 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 122)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 122.00 |
Average method complexity | 3.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 122.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 88 | |
▷ Abstract classes | 2 | 2.27% |
▷ Concrete classes | 86 | 97.73% |
▷ Final classes | 0 | 0.00% |
Methods | 290 | |
▷ Static methods | 110 | 37.93% |
▷ Public methods | 241 | 83.10% |
▷ Protected methods | 43 | 14.83% |
▷ Private methods | 6 | 2.07% |
Functions | 84 | |
▷ Named functions | 84 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 208 | |
▷ Global constants | 208 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/view/assets/img/logo-20x20.png | 1.57KB | 0.86KB | ▼ 44.86% |
lib/view/assets/img/logo-32x32.png | 2.00KB | 1.48KB | ▼ 25.93% |
lib/view/assets/img/logo-128x128.png | 5.90KB | 2.94KB | ▼ 50.10% |