Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼139.78ms] Passed 4 tests
Analyzing server-side resources used by Trail-Passion
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 34.18 ▲0.45 |
Dashboard /wp-admin | 3.06 ▲0.01 | 45.10 ▲9.12 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 38.91 ▼2.62 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 92.86 ▼559.97 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 32.27 ▲3.04 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Trail-Passion
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,685 ▲90 | 15.86 ▲0.24 | 8.57 ▼2.10 | 46.14 ▼3.51 |
Dashboard /wp-admin | 2,972 ▲41 | 5.92 ▼0.13 | 135.47 ▼11.28 | 110.17 ▼7.99 |
Posts /wp-admin/edit.php | 2,741 ▲5 | 2.72 ▲0.02 | 66.41 ▲3.26 | 87.73 ▼1.38 |
Add New Post /wp-admin/post-new.php | 1,685 ▲70 | 18.22 ▼3.13 | 415.08 ▲143.36 | 118.03 ▲16.96 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.02 ▲0.01 | 140.81 ▼2.53 | 117.81 ▲3.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function execService() in wp-content/plugins/trail-passion/trunk/tfw/svc.php:102
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/trail-passion/trunk/trail-passion.php:84
- > PHP Warning
include(svc/.php): failed to open stream: No such file or directory in wp-content/plugins/trail-passion/trunk/tfw/svc.php on line 95
- > PHP Warning
include(): Failed opening 'svc/.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/trail-passion/trunk/tfw/svc.php on line 95
- > PHP Warning
include_once(../../../../wp-config.php): failed to open stream: No such file or directory in /var/www/wordpress/wp-content/plugins/trail-passion/trunk/tfw/db.inc on line 17
- > PHP Notice
Undefined variable: table_prefix in /var/www/wordpress/wp-content/plugins/trail-passion/trunk/tfw/db.inc on line 23
- > PHP Warning
include_once(): Failed opening '../../../../wp-config.php' for inclusion (include_path='.:/usr/share/php') in /var/www/wordpress/wp-content/plugins/trail-passion/trunk/tfw/db.inc on line 17
- > PHP Notice
Undefined index: i in wp-content/plugins/trail-passion/trunk/tfw/svc.php on line 63
- > PHP Warning
Use of undefined constant DB_USER - assumed 'DB_USER' (this will throw an Error in a future version of PHP) in /var/www/wordpress/wp-content/plugins/trail-passion/trunk/tfw/db.inc on line 21
- > PHP Warning
Use of undefined constant DB_HOST - assumed 'DB_HOST' (this will throw an Error in a future version of PHP) in /var/www/wordpress/wp-content/plugins/trail-passion/trunk/tfw/db.inc on line 19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== trail-passion ===
) - Donate link: Invalid url: ""
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
trail-passion/trail-passion.php Passed 13 tests
The main file in "Trail-Passion" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
72 characters long description:
Embed high quality maps in wordpress with elevation graphs and 3D views.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected824 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 44 | 97 | 304 |
JavaScript | 1 | 26 | 32 | 214 |
SVG | 1 | 0 | 0 | 166 |
CSS | 1 | 25 | 0 | 140 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 12 | |
▷ Named functions | 12 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
fly.png | 0.87KB | 0.86KB | ▼ 1.23% |
follow.png | 2.61KB | 1.87KB | ▼ 28.60% |
trunk/fly.png | 0.87KB | 0.86KB | ▼ 1.23% |
trunk/trail-passion.png | 1.06KB | 1.27KB | 0.00% |
trunk/follow.png | 2.61KB | 1.87KB | ▼ 28.60% |