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.06MB] [CPU: ▼147.29ms] Passed 4 tests
Analyzing server-side resources used by GeoPlatform Search
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.06 | 27.74 ▲4.16 |
Dashboard /wp-admin | 3.13 ▲0.06 | 36.23 ▼6.82 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 41.30 ▲6.89 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.05 | 74.10 ▼589.40 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 27.52 ▲2.89 |
GeoPlatform Search /wp-admin/options-general.php?page=geoplatform-search | 3.11 | 40.23 |
Server storage [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: no files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for GeoPlatform Search
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,782 ▲181 | 16.31 ▲0.29 | 8.29 ▲0.58 | 77.75 ▲1.24 |
Dashboard /wp-admin | 2,939 ▲43 | 6.18 ▲0.02 | 114.96 ▼13.45 | 175.78 ▼0.11 |
Posts /wp-admin/edit.php | 2,749 ▲12 | 3.24 ▲0.01 | 62.79 ▲0.48 | 133.32 ▼5.00 |
Add New Post /wp-admin/post-new.php | 3,715 ▼93 | 19.16 ▲0.19 | 412.35 ▼95.87 | 159.66 ▼2.88 |
Media Library /wp-admin/upload.php | 1,761 ▲9 | 5.52 ▼0.02 | 140.53 ▼6.79 | 187.48 ▲5.50 |
GeoPlatform Search /wp-admin/options-general.php?page=geoplatform-search | 1,036 | 2.41 | 55.02 | 111.40 |
Uninstaller [IO: ✅] [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 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/geoplatform-search/includes/geoplatform-search-core.php
- > /wp-content/plugins/geoplatform-search/public/partials/geoplatform-search-public-display.php
- 37× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: a in wp-content/plugins/geoplatform-search/includes/geoplatform-search-core.php on line 38
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/geoplatform-search/includes/geoplatform-search-admin.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/geoplatform-search/includes/geoplatform-search-admin.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/geoplatform-search/includes/geoplatform-search-core.php on line 37
- > PHP Notice
Undefined variable: a in wp-content/plugins/geoplatform-search/includes/geoplatform-search-core.php on line 49
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/geoplatform-search/includes/geoplatform-search-core.php on line 38
- > PHP Notice
Undefined variable: a in wp-content/plugins/geoplatform-search/includes/geoplatform-search-core.php on line 43
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/geoplatform-search/includes/geoplatform-search-core.php on line 198
- > PHP Notice
Undefined variable: a in wp-content/plugins/geoplatform-search/includes/geoplatform-search-core.php on line 41
- > PHP Notice
Undefined variable: pagingVal in wp-content/plugins/geoplatform-search/includes/geoplatform-search-core.php on line 27
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
geoplatform-search/geoplatform-search.php Passed 13 tests
The main PHP file in "GeoPlatform Search" ver. 1.0.9 adds more information about the plugin and also serves as the entry point for this plugin
55 characters long description:
Browse, search, and filter GeoPlatform service objects.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin3,763 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 13 | 0 | 0 | 2,683 |
PHP | 16 | 191 | 615 | 751 |
CSS | 4 | 50 | 26 | 300 |
JavaScript | 8 | 8 | 59 | 24 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
assets/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
assets/img-404.png | 2.51KB | 2.44KB | ▼ 2.72% |
assets/favicon.png | 0.90KB | 0.50KB | ▼ 43.84% |
assets/layers.png | 0.68KB | 1.05KB | 0.00% |