Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼144.34ms] Passed 4 tests
Analyzing server-side resources used by GPXpress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 36.41 ▲17.64 |
Dashboard /wp-admin | 3.11 ▲0.06 | 44.23 ▼3.36 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 37.92 ▼10.04 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 85.16 ▼569.10 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 38.49 ▲5.13 |
GPXpress /wp-admin/options-general.php?page=gpxpress | 3.03 | 25.98 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 1 new option
New WordPress options |
---|
gpxpress_options |
Browser metrics Passed 4 tests
A check of browser resources used by GPXpress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,683 ▲88 | 15.77 ▲0.31 | 7.52 ▼2.42 | 46.93 ▼0.05 |
Dashboard /wp-admin | 2,975 ▲41 | 5.89 ▼0.04 | 130.56 ▲3.38 | 117.02 ▲6.78 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▼0.00 | 62.20 ▼4.67 | 93.36 ▲1.91 |
Add New Post /wp-admin/post-new.php | 1,675 ▲175 | 19.15 ▲0.57 | 373.60 ▲25.34 | 106.22 ▼5.70 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.04 ▲0.01 | 147.06 ▼8.45 | 109.71 ▼5.55 |
GPXpress /wp-admin/options-general.php?page=gpxpress | 1,091 | 2.22 | 52.60 | 74.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gpxpress/gpxpress.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Example post with map.), #2 (Settings screen.)
gpxpress/gpxpress.php Passed 13 tests
The entry point to "GPXpress" version 1.3 is a PHP file that has certain tags in its header comment area
35 characters long description:
Embed beautiful maps of GPX tracks.
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
Good job! No executable or dangerous file extensions detected1,060 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 1 | 0 | 0 | 832 |
PHP | 3 | 74 | 186 | 215 |
JavaScript | 1 | 2 | 1 | 13 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 2 | 25.00% |
▷ Class constants | 6 | 75.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.26MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/motorcycle.png | 0.74KB | 0.48KB | ▼ 34.79% |
icons/shadow.png | 1.58KB | 1.68KB | 0.00% |
screenshot-1.png | 181.06KB | 73.38KB | ▼ 59.47% |
icons/finish.png | 1.04KB | 0.75KB | ▼ 27.36% |
screenshot-2.png | 77.79KB | 22.34KB | ▼ 71.28% |