Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.30MB] [CPU: ▼7.56ms] Passed 4 tests
Analyzing server-side resources used by WP Trip Summary
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.55 ▲2.09 | 52.48 ▲8.19 |
Dashboard /wp-admin | 5.38 ▲2.08 | 60.46 ▲7.10 |
Posts /wp-admin/edit.php | 5.98 ▲2.62 | 77.02 ▲28.07 |
Add New Post /wp-admin/post-new.php | 4.86 ▼1.03 | 37.48 ▼73.61 |
Media Library /wp-admin/upload.php | 5.30 ▲2.07 | 60.63 ▲30.09 |
About /wp-admin/admin.php?page=abp01-trip-summary-about | 5.33 | 50.34 |
Maintenance /wp-admin/admin.php?page=abp01-trip-summary-maintenance | 5.37 | 50.13 |
Settings /wp-admin/admin.php?page=abp01-trip-summary-settings | 5.50 | 48.27 |
Help /wp-admin/admin.php?page=abp01-trip-summary-help | 5.55 | 50.50 |
Lookup data management /wp-admin/admin.php?page=abp01-trip-summary-lookup | 5.40 | 46.35 |
Server storage [IO: ▲8.14MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 457 new files
Database: 5 new tables, 8 new options
New tables |
---|
wp_abp01_techbox_route_details_lookup |
wp_abp01_techbox_route_details |
wp_abp01_techbox_route_track |
wp_abp01_techbox_lookup |
wp_abp01_techbox_lookup_lang |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
abp01.option.version |
abp01.option.changeLogCache |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WP Trip Summary
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲100 | 13.32 ▼0.98 | 4.04 ▲2.30 | 38.77 ▼10.76 |
Dashboard /wp-admin | 2,238 ▲53 | 4.85 ▼1.16 | 112.81 ▲14.35 | 38.98 ▼4.83 |
Posts /wp-admin/edit.php | 2,191 ▲99 | 3.03 ▲0.97 | 51.97 ▲11.68 | 33.96 ▼1.26 |
Add New Post /wp-admin/post-new.php | 1,866 ▲333 | 18.73 ▼4.35 | 751.64 ▲131.46 | 50.42 ▼2.13 |
Media Library /wp-admin/upload.php | 1,426 ▲35 | 4.21 ▲0.02 | 98.34 ▲0.05 | 40.80 ▼6.33 |
About /wp-admin/admin.php?page=abp01-trip-summary-about | 1,431 | 2.02 | 23.83 | 29.61 |
Maintenance /wp-admin/admin.php?page=abp01-trip-summary-maintenance | 917 | 2.87 | 30.35 | 23.54 |
Settings /wp-admin/admin.php?page=abp01-trip-summary-settings | 1,570 | 3.62 | 50.22 | 46.96 |
Help /wp-admin/admin.php?page=abp01-trip-summary-help | 2,279 | 3.10 | 32.02 | 79.20 |
Lookup data management /wp-admin/admin.php?page=abp01-trip-summary-lookup | 1,865 | 3.29 | 62.18 | 30.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
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)
The smoke test was a success, however most plugin functionality was not tested
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
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: Class 'Abp01_Exception' not found in wp-content/plugins/wp-trip-summary/lib/pluginModules/Exception.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: trip, summary, gpx, map, travel
wp-trip-summary/abp01-plugin-main.php 85% from 13 tests
The main PHP file in "WP Trip Summary" ver. 0.2.8 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("wp-trip-summary.php" instead of "abp01-plugin-main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected80,659 lines of code in 338 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 113 | 13,229 | 11,279 | 57,487 |
PHP | 186 | 3,636 | 8,822 | 15,768 |
CSS | 30 | 535 | 570 | 4,065 |
HTML | 4 | 0 | 0 | 1,758 |
PO File | 2 | 529 | 647 | 1,305 |
SVG | 1 | 1 | 1 | 145 |
XML | 1 | 7 | 0 | 126 |
Markdown | 1 | 4 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 10.49 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 221.00 |
Average method complexity | 1.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 23 | |
Traits | 0 | |
Classes | 128 | |
▷ Abstract classes | 3 | 2.34% |
▷ Concrete classes | 125 | 97.66% |
▷ Final classes | 0 | 0.00% |
Methods | 1,517 | |
▷ Static methods | 106 | 6.99% |
▷ Public methods | 934 | 61.57% |
▷ Protected methods | 56 | 3.69% |
▷ Private methods | 527 | 34.74% |
Functions | 89 | |
▷ Named functions | 62 | 69.66% |
▷ Anonymous functions | 27 | 30.34% |
Constants | 266 | |
▷ Global constants | 44 | 16.54% |
▷ Class constants | 222 | 83.46% |
▷ Public constants | 222 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
65 PNG files occupy 3.65MB with 1.79MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
media/img/logo.png | 57.52KB | 21.04KB | ▼ 63.41% |
data/help/ro_RO/screenshots/viewer-map-alt-profile.png | 268.01KB | 135.04KB | ▼ 49.61% |
data/help/en_US/screenshots/maintenance.png | 19.02KB | 6.21KB | ▼ 67.36% |
data/help/default/screenshots/admin-edit-launcher-block.png | 9.83KB | 5.07KB | ▼ 48.47% |
media/js/abp01-classic-editor-shortcode/button.png | 1.11KB | 0.94KB | ▼ 15.96% |