Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼1.62ms] Passed 4 tests
An overview of server-side resources used by ClickPress Migration
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 36.68 ▼8.22 |
Dashboard /wp-admin | 3.47 ▲0.16 | 46.80 ▼3.46 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 48.10 ▲0.59 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 93.55 ▲4.61 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 41.74 ▲7.95 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by ClickPress Migration
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲104 | 13.28 ▼0.95 | 1.88 ▲0.02 | 43.30 ▼6.15 |
Dashboard /wp-admin | 2,245 ▲60 | 4.95 ▼0.13 | 107.55 ▼10.74 | 42.89 ▼4.08 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.06 ▲0.04 | 41.96 ▲7.06 | 35.25 ▲1.10 |
Add New Post /wp-admin/post-new.php | 1,543 ▲7 | 23.50 ▲0.22 | 599.30 ▼10.82 | 48.18 ▼3.97 |
Media Library /wp-admin/upload.php | 1,427 ▲42 | 4.16 ▼0.03 | 100.76 ▲0.71 | 42.03 ▼0.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/one-click-migration/src/migration-page/styles.php
- > /wp-content/plugins/one-click-migration/src/debug-page/styles.php
- > /wp-content/plugins/one-click-migration/src/debug-page/scripts.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: phpVersion in wp-content/plugins/one-click-migration/src/migration-page/scripts.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/one-click-migration/src/debug-page/html.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/one-click-migration/clickpress-migration.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/one-click-migration/src/migration-page/html.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function clickpress_migration_e() in wp-content/plugins/one-click-migration/src/migration-page/scripts.php:80
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: migration
one-click-migration/clickpress-migration.php 85% from 13 tests
The primary PHP file in "ClickPress Migration" version 0.2.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("one-click-migration.php" instead of "clickpress-migration.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,757 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 416 | 263 | 1,757 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 23 | 79.31% |
▷ Anonymous functions | 6 | 20.69% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/v.png | 0.35KB | 0.25KB | ▼ 29.09% |
img/info.png | 0.58KB | 0.47KB | ▼ 19.97% |
img/check-red.png | 0.59KB | 0.38KB | ▼ 36.36% |
img/time.png | 0.70KB | 0.43KB | ▼ 39.25% |
img/check-green.png | 0.55KB | 0.39KB | ▼ 29.41% |