Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/taxi-fare-calculator-by-taxifarefindercom/taxifarefinder-widget.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; TaxiFareFinder_Widget has a deprecated constructor
Server metrics [RAM: ▼1.86MB] [CPU: ▼50.88ms] Passed 4 tests
An overview of server-side resources used by Taxi Fare Calculator - TaxiFareFinder for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.34 | 4.86 ▼34.02 |
Dashboard /wp-admin | 2.15 ▼1.16 | 6.06 ▼40.50 |
Posts /wp-admin/edit.php | 2.15 ▼1.21 | 6.37 ▼41.13 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.74 | 6.85 ▼87.88 |
Media Library /wp-admin/upload.php | 2.15 ▼1.08 | 6.36 ▼27.68 |
TaxiFareFinder /wp-admin/options-general.php?page=taxi-fare-calculator-by-taxifarefindercom/taxifarefinder.php | 2.15 | 6.72 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_taxifarefinder |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Taxi Fare Calculator - TaxiFareFinder for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲174 | 13.96 ▼0.59 | 8.22 ▲6.68 | 42.57 ▲3.54 |
Dashboard /wp-admin | 2,212 ▲27 | 4.87 ▼1.00 | 104.81 ▲5.15 | 42.03 ▲4.48 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.01 ▼0.01 | 38.34 ▲2.33 | 35.05 ▲1.05 |
Add New Post /wp-admin/post-new.php | 1,519 ▼16 | 18.00 ▼5.18 | 659.74 ▼41.93 | 60.17 ▲2.11 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.24 ▼0.01 | 93.29 ▼8.08 | 42.03 ▼3.02 |
TaxiFareFinder /wp-admin/options-general.php?page=taxi-fare-calculator-by-taxifarefindercom/taxifarefinder.php | 847 | 2.16 | 24.33 | 24.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/taxi-fare-calculator-by-taxifarefindercom/taxifarefinder-widget.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; TaxiFareFinder_Widget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_recent-comments
- widget_taxifarefinder
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=taxi-fare-calculator-by-taxifarefindercom/taxifarefinder.php
- > Deprecated in wp-content/plugins/taxi-fare-calculator-by-taxifarefindercom/taxifarefinder-widget.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; TaxiFareFinder_Widget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=taxi-fare-calculator-by-taxifarefindercom/taxifarefinder.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in TaxiFareFinder_Widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=taxi-fare-calculator-by-taxifarefindercom/taxifarefinder.php
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- > GET request to /wp-admin/options-general.php?page=taxi-fare-calculator-by-taxifarefindercom/taxifarefinder.php
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=taxi-fare-calculator-by-taxifarefindercom/taxifarefinder.php
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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: Class 'WP_Widget' not found in wp-content/plugins/taxi-fare-calculator-by-taxifarefindercom/taxifarefinder-widget.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/taxi-fare-calculator-by-taxifarefindercom/taxifarefinder-widget.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=taxi-fare-calculator-by-taxifarefindercom/taxifarefinder.php
- > Network (severe)
wp-content/plugins/taxi-fare-calculator-by-taxifarefindercom/js/taxifarefinder-admin.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: cab, calculator, taxicab, taxi, fare...
taxi-fare-calculator-by-taxifarefindercom/taxifarefinder.php 92% from 13 tests
The main PHP script in "Taxi Fare Calculator - TaxiFareFinder for WordPress" version 1.1.1 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("taxi-fare-calculator-by-taxifarefindercom.php" instead of "taxifarefinder.php")
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
Success! There were no dangerous files found in this plugin442 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 83 | 63 | 319 |
JavaScript | 1 | 12 | 7 | 85 |
CSS | 1 | 10 | 1 | 38 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/tffpower-rectwhite300x50.png | 7.31KB | 4.22KB | ▼ 42.24% |
images/tffpower-rectwhite150x25.png | 5.10KB | 2.71KB | ▼ 46.91% |
images/tffpower-boxblack130x130.png | 7.59KB | 4.26KB | ▼ 43.87% |
images/tfflogo90.png | 4.20KB | 2.75KB | ▼ 34.49% |
images/tffpower-boxyellow130x130.png | 7.20KB | 4.01KB | ▼ 44.26% |