Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼0.36ms] Passed 4 tests
An overview of server-side resources used by WP-Portability
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 35.99 ▼3.78 |
Dashboard /wp-admin | 3.37 ▲0.07 | 44.92 ▼0.48 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.89 ▼0.35 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 92.30 ▲3.18 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.14 ▲6.70 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please fix the following
- You have illegally modified 1 file (0.50KB) outside of "wp-content/plugins/wp-portability/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP-Portability
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.27 ▼1.02 | 4.83 ▲3.23 | 43.19 ▼3.08 |
Dashboard /wp-admin | 2,210 ▲24 | 4.86 ▼0.08 | 107.11 ▼8.41 | 39.88 ▲1.45 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.07 | 39.55 ▼0.85 | 35.68 ▼1.66 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.07 ▲5.43 | 633.66 ▼66.43 | 48.75 ▼8.51 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.19 ▲0.02 | 96.84 ▼14.69 | 42.60 ▼0.02 |
Portability /wp-admin/portability.php | 26 | 0.44 | 0.11 | 13.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/wp-portability/wp-portability.php:104
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/wp-portability/views/admin-settings.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/portability.php
- > Network (severe)
wp-admin/portability.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: domain-agnostic, installation, url, shortcode, portability...
wp-portability/wp-portability.php Passed 13 tests
The primary PHP file in "WP-Portability" version 1.1.1 is used by WordPress to initiate all plugin functionality
107 characters long description:
A plugin for facilitating deploying a site across different domains and servers without breaking the paths.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin482 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 54 | 191 | 361 |
JavaScript | 1 | 7 | 2 | 70 |
Markdown | 1 | 29 | 0 | 51 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 14.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 1 | 3.45% |
▷ Public methods | 27 | 93.10% |
▷ Protected methods | 1 | 3.45% |
▷ Private methods | 1 | 3.45% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin