Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.60MB] [CPU: ▼14.33ms] Passed 4 tests
An overview of server-side resources used by Custom Post Type to Map Store
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 43.97 ▲3.50 |
Dashboard /wp-admin | 3.39 ▲0.05 | 45.03 ▼11.58 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 45.33 ▲0.30 |
Add New Post /wp-admin/post-new.php | 3.27 ▼2.62 | 41.43 ▼49.55 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.00 ▲3.82 |
CPT to Map Store /wp-admin/options-general.php?page=cpt-to-map-store | 3.34 | 30.66 |
Server storage [IO: ▲2.73MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Post Type to Map Store
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.72 ▲0.32 | 1.52 ▲0.06 | 41.41 ▼5.11 |
Dashboard /wp-admin | 2,199 ▲18 | 5.58 ▼0.12 | 81.95 ▼21.79 | 38.10 ▼1.03 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.99 ▼0.05 | 34.59 ▼1.35 | 32.46 ▼5.71 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.53 ▲0.19 | 666.24 ▲14.22 | 45.86 ▼8.01 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.20 ▲0.04 | 95.32 ▼3.09 | 42.44 ▼0.00 |
CPT to Map Store /wp-admin/options-general.php?page=cpt-to-map-store | 1,241 | 2.12 | 21.98 | 35.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cpt-to-map-store
- > Notice in wp-content/plugins/cpt-to-map-store/admin/partials/cpt-to-map-store-admin-settings.php+184
Trying to access array offset on value of type bool
SRP 0% 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
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/cpt-to-map-store/public/partials/cpt-to-map-store-public-display.php
- > /wp-content/plugins/cpt-to-map-store/admin/partials/cpt-to-map-store-admin-settings.php
- > /wp-content/plugins/cpt-to-map-store/admin/partials/cpt-to-map-store-admin-display.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/cpt-to-map-store/admin/partials/cpt-to-map-store-presentation-card.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/cpt-to-map-store/admin/partials/cpt-to-map-store-admin-settings.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (14 tag instead of maximum 10)
cpt-to-map-store/cpt-to-map-store.php Passed 13 tests
The entry point to "Custom Post Type to Map Store" version 1.1.0 is a PHP file that has certain tags in its header comment area
90 characters long description:
An another Store Locator on WordPress but with OpenStreetMap & Leaflet and Meta Fields
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin17,536 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 5,222 | 6,911 | 16,049 |
PHP | 11 | 272 | 520 | 663 |
CSS | 4 | 57 | 28 | 638 |
PO File | 1 | 53 | 104 | 146 |
Markdown | 1 | 18 | 0 | 40 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 1 | 3.03% |
▷ Public methods | 19 | 57.58% |
▷ Protected methods | 2 | 6.06% |
▷ Private methods | 12 | 36.36% |
Functions | 9 | |
▷ Named functions | 7 | 77.78% |
▷ Anonymous functions | 2 | 22.22% |
Constants | 3 | |
▷ Global constants | 3 | 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
5 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/lib/leaflet/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
assets/lib/leaflet/images/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
assets/lib/leaflet/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
assets/lib/leaflet/images/layers.png | 0.68KB | 1.05KB | 0.00% |
assets/lib/leaflet/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |