Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.04ms] Passed 4 tests
A check of server-side resources used by Fare Calculator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 42.37 ▼3.19 |
Dashboard /wp-admin | 3.37 ▲0.06 | 46.48 ▼0.43 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 47.38 ▲2.62 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 84.98 ▼11.14 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 41.53 ▲3.67 |
Bookings /wp-admin/admin.php?page=fare-calculator/send.php | 3.25 | 29.19 |
Settings /wp-admin/admin.php?page=fare-calculator/senddd.php | 3.25 | 29.53 |
Fare Settings /wp-admin/admin.php?page=fare-calculator/farecalculator.php | 3.25 | 31.97 |
ConfirmedBookings /wp-admin/admin.php?page=fare-calculator/sendd.php | 3.25 | 30.86 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_taxibooked |
wp_fare |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Fare Calculator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 14.74 ▲0.36 | 2.22 ▲0.22 | 43.40 ▼10.25 |
Dashboard /wp-admin | 2,243 ▲55 | 4.87 ▼0.24 | 95.60 ▼6.24 | 76.01 ▲29.30 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 1.99 ▼0.02 | 38.31 ▲2.26 | 34.48 ▼2.46 |
Add New Post /wp-admin/post-new.php | 1,696 ▲176 | 22.65 ▼0.46 | 652.51 ▼36.63 | 52.84 ▲1.89 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.10 ▼0.13 | 91.75 ▼20.70 | 87.73 ▲40.01 |
Bookings /wp-admin/admin.php?page=fare-calculator/send.php | 842 | 2.01 | 23.60 | 29.36 |
Settings /wp-admin/admin.php?page=fare-calculator/senddd.php | 813 | 2.02 | 23.68 | 24.12 |
Fare Settings /wp-admin/admin.php?page=fare-calculator/farecalculator.php | 919 | 2.02 | 24.47 | 30.54 |
ConfirmedBookings /wp-admin/admin.php?page=fare-calculator/sendd.php | 833 | 2.01 | 24.80 | 26.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/fare-calculator/farecalculator.php+79
Undefined variable: table_name
- Zombie tables detected upon uninstall: 1 table
- wp_fare
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
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 | 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
Please fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/fare-calculator/farecalculator.php on line 26
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/fare-calculator/farecalculator.php on line 26
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/fare-calculator/farecalculator.php on line 26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #0, #0 in fare-calculator/assets to your readme.txt
- Screenshots: Screenshot #1 (Here's a screenshot of it in action) image missing
fare-calculator/farecalculator.php 85% from 13 tests
"Fare Calculator" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 146 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("fare-calculator.php" instead of "farecalculator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin359 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 154 | 33 | 359 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.82MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/screenshot.png | 202.56KB | 82.37KB | ▼ 59.33% |
images/fare.png | 3.90KB | 1.29KB | ▼ 67.00% |
screenshot.png | 202.56KB | 82.37KB | ▼ 59.33% |
images/preview.png | 213.47KB | 103.07KB | ▼ 51.72% |
fare.png | 213.47KB | 103.07KB | ▼ 51.72% |