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: ▼0.64MB] [CPU: ▼16.84ms] Passed 4 tests
An overview of server-side resources used by one.com Migrator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.03 | 41.64 ▼4.28 |
Dashboard /wp-admin | 3.38 ▲0.03 | 52.82 ▼4.56 |
Posts /wp-admin/edit.php | 3.49 ▲0.09 | 48.75 ▲1.48 |
Add New Post /wp-admin/post-new.php | 3.29 ▼2.64 | 39.66 ▼59.98 |
Media Library /wp-admin/upload.php | 3.30 ▲0.03 | 40.98 ▲4.82 |
one.com Migrator /wp-admin/admin.php?page=onecom-migrator | 3.27 | 34.13 |
Server storage [IO: ▲1.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
one.com Migrator: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲85 | 14.72 ▲0.62 | 1.84 ▲0.08 | 40.25 ▼5.49 |
Dashboard /wp-admin | 2,240 ▲63 | 5.52 ▼0.07 | 87.23 ▼15.28 | 70.05 ▲26.33 |
Posts /wp-admin/edit.php | 2,160 ▲60 | 1.98 ▼0.04 | 35.17 ▼1.41 | 39.18 ▲2.71 |
Add New Post /wp-admin/post-new.php | 1,734 ▲206 | 22.25 ▼1.18 | 793.99 ▲140.96 | 67.54 ▲15.84 |
Media Library /wp-admin/upload.php | 1,460 ▲57 | 4.14 ▼0.04 | 97.02 ▼3.58 | 72.30 ▲24.07 |
one.com Migrator /wp-admin/admin.php?page=onecom-migrator | 853 | 1.99 | 25.33 | 58.96 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/onecom-migrator/onecom-migrator.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/onecom-migrator/inc/templates/migrator-admin-template.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: onecom-migrator, migrator, onecom migrator, onecom
onecom-migrator/onecom-migrator.php Passed 13 tests
The main PHP file in "one.com Migrator" ver. 0.1.2 adds more information about the plugin and also serves as the entry point for this plugin
99 characters long description:
one.com migrator plugin helps to migrate a WordPress site from previous hosting provider to one.com
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin478 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 0 | 0 | 271 |
PHP | 5 | 57 | 94 | 182 |
SVG | 2 | 0 | 1 | 25 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.89MB with 0.31MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/guide-ss.png | 915.69KB | 598.47KB | ▼ 34.64% |