Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.78ms] Passed 4 tests
This is a short check of server-side resources used by Migrate Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 45.13 ▲0.80 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.01 ▼7.55 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 50.18 ▼3.55 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 90.37 ▼8.10 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 41.36 ▲0.10 |
Add New /wp-admin/admin.php?page=add_new_domain | 3.29 | 34.06 |
Migrate Post Domains /wp-admin/admin.php?page=mp_migratepost_domain | 3.27 | 35.44 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: 1 new table, 6 new options
New tables |
---|
mp_migratepost_domains |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Migrate Posts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲98 | 13.27 ▼1.03 | 5.51 ▲3.68 | 43.29 ▼0.09 |
Dashboard /wp-admin | 2,237 ▲49 | 4.88 ▼0.01 | 108.50 ▲2.07 | 45.05 ▲4.00 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.05 ▲0.05 | 34.97 ▲0.33 | 33.44 ▼4.22 |
Add New Post /wp-admin/post-new.php | 1,541 ▲27 | 23.23 ▲5.69 | 679.62 ▼2.99 | 52.87 ▲0.77 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.19 ▲0.06 | 106.74 ▼9.15 | 47.85 ▼4.26 |
Add New /wp-admin/admin.php?page=add_new_domain | 950 | 2.05 | 26.48 | 39.39 |
Migrate Post Domains /wp-admin/admin.php?page=mp_migratepost_domain | 913 | 1.86 | 27.97 | 27.73 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Donate link: Invalid url: ""
migrate-post/migrate-posts.php 92% from 13 tests
This is the main PHP file of "Migrate Posts" version 1.0, 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: Please rename the main PHP file in this plugin to the plugin slug ("migrate-post.php" instead of "migrate-posts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected722 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 212 | 131 | 605 |
JavaScript | 1 | 20 | 3 | 67 |
CSS | 1 | 7 | 0 | 50 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected