Benchmarks
Plugin footprint 30% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.24MB] [CPU: ▼11.00ms] Passed 4 tests
Analyzing server-side resources used by Pidex
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 40.82 ▲0.66 |
Dashboard /wp-admin | 3.55 ▲0.21 | 46.55 ▼13.39 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 48.76 ▼6.45 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 83.43 ▼24.83 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 36.42 ▲3.95 |
Pidex /wp-admin/admin.php?page=pidex | 3.46 | 33.74 |
Pidex Settings /wp-admin/admin.php?page=pidex_settings | 3.45 | 34.11 |
Pidex Tracking /wp-admin/admin.php?page=pidex_tracking | 3.45 | 32.88 |
Server storage [IO: ▲3.49MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 55 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_pidex_shipped_orders |
New WordPress options |
---|
pidex_installed |
db_upgraded |
theysaidso_admin_options |
pidex_settings |
pidex_version |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Pidex
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲96 | 14.37 ▲0.02 | 1.74 ▲0.12 | 33.94 ▼7.59 |
Dashboard /wp-admin | 2,266 ▲92 | 5.65 ▲0.07 | 92.95 ▲7.13 | 42.65 ▲1.64 |
Posts /wp-admin/edit.php | 2,169 ▲69 | 2.05 ▲0.03 | 36.77 ▼2.63 | 35.55 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 23.11 ▼0.16 | 680.00 ▲3.62 | 53.89 ▼4.48 |
Media Library /wp-admin/upload.php | 1,471 ▲71 | 4.23 ▲0.06 | 94.79 ▼0.30 | 44.13 ▲2.98 |
Pidex /wp-admin/admin.php?page=pidex | 1,190 | 1.68 | 31.06 | 71.25 |
Pidex Settings /wp-admin/admin.php?page=pidex_settings | 1,153 | 2.23 | 26.24 | 53.01 |
Pidex Tracking /wp-admin/admin.php?page=pidex_tracking | 979 | 2.07 | 27.72 | 38.89 |
Uninstaller [IO: ▲3.49MB] [DB: ▲0.00MB] 0% 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 followingZombie tables detected upon uninstall: 1 table Zombie WordPress options were found after uninstall: 10 options
- Uninstall procedure had uncaught errors
- > Error in wp-content/plugins/pidex/uninstall.php+18
Uncaught Error: Call to undefined function wc_get_orders() in wp-content/plugins/pidex/uninstall.php:18
Stack trace:
#0 wp-admin/includes/plugin.php(1245): include_once()
#1 wp-admin/includes/plugin.php(960): uninstall_plugin() - The plugin did not uninstall correctly, leaving 55 files (3.49MB) in the plugin directory
- (new file) Pidex.php
- (new file) assets/css/pidex-woocommerce-order-status-style.css
- (new file) assets/css/pidex-admin-style.css
- (new file) assets/image/1Dashboard.png
- (new file) assets/image/3PidexSettings.png
- (new file) assets/css/pidex-tracking-style.css
- (new file) assets/css/toastify.min.css
- (new file) assets/css/pidex-admin-menu-style.css
- (new file) assets/image/2APIToken.png
- (new file) assets/css/select2.min.css
- ...
- wp_pidex_shipped_orders
- db_upgraded
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- pidex_installed
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- pidex_version
- theysaidso_admin_options
- pidex_settings
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/pidex/includes/Frontend/index.php
- > /wp-content/plugins/pidex/index.php
- > /wp-content/plugins/pidex/includes/Frontend/views/pidex-tracking-view.php
- > /wp-content/plugins/pidex/includes/index.php
- > /wp-content/plugins/pidex/includes/Admin/index.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_html_class() in wp-content/plugins/pidex/includes/Admin/views/pidex-place-order-metabox-view.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/pidex/includes/Admin/views/pidex-settings-view.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/pidex/includes/Admin/views/pidex-welcome-view.php:22
- > PHP Notice
Undefined variable: apiCredentialStatus in wp-content/plugins/pidex/includes/Admin/views/pidex-place-order-metabox-view.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/pidex/includes/Constants.php:6
- > PHP Notice
Undefined variable: apiCredentialStatus in wp-content/plugins/pidex/includes/Admin/views/pidex-place-order-metabox-view.php on line 10
- > 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 Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: pidex-parcel-tracker, delivery, courier, pidex, pidex-parcel-booking...
pidex/Pidex.php 85% from 13 tests
The primary PHP file in "Pidex" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pidex.php" instead of "Pidex.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 detected2,613 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 362 | 719 | 1,501 |
JavaScript | 6 | 161 | 167 | 588 |
SVG | 1 | 0 | 1 | 518 |
CSS | 6 | 0 | 14 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 1 | 8.33% |
Methods | 47 | |
▷ Static methods | 1 | 2.13% |
▷ Public methods | 46 | 97.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.13% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 1.91MB with 1.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image/3PidexSettings.png | 71.07KB | 15.52KB | ▼ 78.17% |
assets/image/2APIToken.png | 166.40KB | 49.34KB | ▼ 70.35% |
assets/image/1Dashboard.png | 652.71KB | 157.08KB | ▼ 75.93% |
assets/image/7PidexTackingResult.png | 321.46KB | 77.96KB | ▼ 75.75% |
assets/image/4WooCommerceOrders.png | 113.73KB | 29.40KB | ▼ 74.15% |