Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼16.58ms] Passed 4 tests
Analyzing server-side resources used by Shipment & Tracking with APC Overnight
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 36.26 ▼5.76 |
Dashboard /wp-admin | 3.36 ▲0.02 | 48.28 ▼23.30 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 48.00 ▼3.49 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 86.73 ▼33.75 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.45 ▲4.48 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Shipment & Tracking with APC Overnight: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.30 ▲0.00 | 1.77 ▼0.10 | 43.46 ▲2.58 |
Dashboard /wp-admin | 2,192 ▲18 | 5.59 ▼0.10 | 81.41 ▼21.10 | 41.63 ▼1.45 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 1.99 ▼0.04 | 36.22 ▼3.87 | 34.38 ▼4.48 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 23.38 ▲0.28 | 683.34 ▲29.56 | 52.19 ▲0.04 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▲0.00 | 97.39 ▼24.31 | 42.05 ▼10.62 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
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)
Good news, no errors were detected
SRP 50% 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wc-apc-overnight-shipment-tracking/apc-overnight-shipping.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: No valid plugin tags found
- Screenshots: Add an image for screenshot #1 (![settings screenshot](admin.php?page=wc-settings&tab=shipping§ion=apc "APC Shipping"))
- Donate link: Invalid URI ("#")
wc-apc-overnight-shipment-tracking/apc-overnight-shipping.php 77% from 13 tests
The primary PHP file in "Shipment & Tracking with APC Overnight" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 153 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wc-apc-overnight-shipment-tracking.php" instead of "apc-overnight-shipping.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin430 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 46 | 40 | 358 |
CSS | 1 | 7 | 0 | 54 |
JavaScript | 1 | 1 | 0 | 18 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 1 | 16.67% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There were not PNG files found in your plugin