Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.03ms] Passed 4 tests
A check of server-side resources used by Pitta Migration
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 44.24 ▲4.12 |
Dashboard /wp-admin | 3.34 ▲0.03 | 46.22 ▼1.76 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.39 ▼1.79 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.77 ▼8.68 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.50 ▲4.44 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Pitta Migration
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 13.19 ▼1.40 | 1.65 ▼0.18 | 36.77 ▼7.78 |
Dashboard /wp-admin | 2,212 ▲27 | 5.85 ▲0.96 | 107.71 ▲5.89 | 40.28 ▼4.21 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.01 ▲0.02 | 40.19 ▲0.78 | 33.97 ▼4.19 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 23.18 ▲5.53 | 691.41 ▲49.35 | 50.48 ▼4.53 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.26 ▲0.08 | 110.20 ▲9.66 | 49.89 ▲6.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pitta-migration/pitta-migration.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/pitta-migration/src/views/setup.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/pitta-migration/src/views/success.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/pitta-migration/src/views/error.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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (A successful migration message)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== pitta-migration ===
)
pitta-migration/pitta-migration.php Passed 13 tests
"Pitta Migration" version 0.4.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
66 characters long description:
Migrate WordPress databases using WP_HOME and WP_SITEURL constants
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected143 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 34 | 170 | 143 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 8 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 50.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 5.95KB | 4.56KB | ▼ 23.41% |