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.31MB] [CPU: ▼1.00ms] Passed 4 tests
This is a short check of server-side resources used by XPS Ship Integration
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.31 | 50.45 ▲9.85 |
Dashboard /wp-admin | 3.61 ▲0.31 | 47.66 ▼1.89 |
Posts /wp-admin/edit.php | 3.72 ▲0.37 | 51.43 ▼2.28 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.31 | 97.69 ▼4.58 |
Media Library /wp-admin/upload.php | 3.53 ▲0.31 | 37.93 ▲4.76 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for XPS Ship Integration
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.73 ▲0.08 | 1.78 ▼0.14 | 44.22 ▲2.73 |
Dashboard /wp-admin | 2,203 ▲26 | 5.57 ▲0.01 | 94.91 ▲5.33 | 43.69 ▼4.27 |
Posts /wp-admin/edit.php | 2,108 ▲11 | 2.00 ▲0.02 | 40.68 ▲2.45 | 37.75 ▲0.49 |
Add New Post /wp-admin/post-new.php | 1,534 ▼15 | 17.61 ▼5.84 | 690.38 ▲18.33 | 76.48 ▲22.39 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.24 ▲0.01 | 106.18 ▲1.30 | 45.51 ▼1.47 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/xps-ship-integration/xpsship-integration.php on line 12
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/xps-ship-integration/xpsship-integration.php on line 12
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/xps-ship-integration/xpsship-integration.php on line 12
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in xps-ship-integration/assets to your readme.txt
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
xps-ship-integration/xpsship-integration.php 77% from 13 tests
Analyzing the main PHP file in "XPS Ship Integration" version 1.1.73
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 155 characters long)
- Requires at least: Required version must be the same as the one declared in readme.txt ("2.6" instead of "2.4.8")
- Main file name: The principal plugin file should be the same as the plugin slug ("xps-ship-integration.php" instead of "xpsship-integration.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,508 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 333 | 151 | 1,508 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 5.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 11 | 73.33% |
▷ Anonymous functions | 4 | 26.67% |
Constants | 23 | |
▷ Global constants | 3 | 13.04% |
▷ Class constants | 20 | 86.96% |
▷ Public constants | 20 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin