Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.21MB] [CPU: ▼140.67ms] Passed 4 tests
An overview of server-side resources used by Pimap
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.00 ▲0.28 | 39.18 ▲17.38 |
Dashboard /wp-admin | 3.30 ▲0.25 | 39.14 ▼4.28 |
Posts /wp-admin/edit.php | 3.35 ▲0.25 | 47.72 ▲3.30 |
Add New Post /wp-admin/post-new.php | 5.60 ▲0.17 | 88.94 ▼565.02 |
Media Library /wp-admin/upload.php | 3.18 ▲0.18 | 33.94 ▲3.32 |
All Pins /wp-admin/edit.php?post_type=pin | 3.23 | 28.05 |
Add New /wp-admin/post-new.php?post_type=pin | 3.31 | 46.50 |
Pin Type /wp-admin/edit-tags.php?taxonomy=pin-type&post_type=pin | 3.18 | 34.26 |
Server storage [IO: ▲1.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pimap
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,802 ▲206 | 17.11 ▲1.60 | 18.40 ▲6.60 | 50.71 ▲2.70 |
Dashboard /wp-admin | 3,025 ▲94 | 5.99 ▲0.07 | 148.06 ▲10.19 | 116.05 ▲8.21 |
Posts /wp-admin/edit.php | 2,794 ▲55 | 2.72 ▲0.00 | 74.58 ▲12.17 | 102.21 ▲13.08 |
Add New Post /wp-admin/post-new.php | 1,712 ▲29 | 18.85 ▲0.28 | 395.05 ▲23.32 | 104.45 ▼3.89 |
Media Library /wp-admin/upload.php | 1,862 ▲55 | 5.06 ▲0.05 | 151.78 ▼3.74 | 133.38 ▲16.33 |
All Pins /wp-admin/edit.php?post_type=pin | 1,486 | 2.97 | 74.40 | 74.88 |
Add New /wp-admin/post-new.php?post_type=pin | 2,640 | 7.47 | 150.75 | 107.88 |
Pin Type /wp-admin/edit-tags.php?taxonomy=pin-type&post_type=pin | 1,794 | 2.38 | 63.59 | 80.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Odin_Front_End_Form' not found in wp-content/plugins/pimap/Odin/core/classes/class-post-form.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pimap/Odin/core/classes/widgets/class-widget-like-box.php:12
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/pimap/Odin/core/classes/class-bootstrap-nav.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pimap/Odin/core/classes/class-shortcodes.php:18
- > PHP Fatal error
Uncaught Error: Class 'Odin_Front_End_Form' not found in wp-content/plugins/pimap/Odin/core/classes/class-contact-form.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/edit.php?post_type=pin
- > Javascript (severe) in unknown
https://maps.google.com/maps/api/js 154:55 Uncaught Qe: Map: Expected mapDiv of type HTMLElement but was passed null.
- > GET request to /wp-admin/post-new.php?post_type=pin
- > Javascript (severe) in unknown
/wp-content/plugins/pimap/assets/js/gmaps.js 20:4 Uncaught ReferenceError: data_pimap_post is not defined
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Initial options, the center of the map and zoom), #2 (Registration pin), #3 (Displaying the map on the site), #4 (Displaying image and content in infobox)
pimap/pimap.php Passed 13 tests
This is the main PHP file of "Pimap" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
71 characters long description:
Create and register pins google maps with comments, pictures and videos
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin3,521 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 793 | 1,895 | 2,746 |
JavaScript | 4 | 231 | 262 | 600 |
CSS | 2 | 19 | 8 | 124 |
PO File | 1 | 16 | 17 | 51 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 26.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 1 | 6.67% |
▷ Concrete classes | 14 | 93.33% |
▷ Final classes | 0 | 0.00% |
Methods | 184 | |
▷ Static methods | 4 | 2.17% |
▷ Public methods | 117 | 63.59% |
▷ Protected methods | 62 | 33.70% |
▷ Private methods | 5 | 2.72% |
Functions | 11 | |
▷ Named functions | 11 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.92MB with 0.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 257.64KB | 88.36KB | ▼ 65.70% |
screenshot-1.png | 21.89KB | 8.63KB | ▼ 60.60% |
screenshot-2.png | 293.72KB | 101.65KB | ▼ 65.39% |
Odin/core/assets/images/placeholder.png | 0.22KB | 0.12KB | ▼ 43.89% |
screenshot-3.png | 368.50KB | 127.62KB | ▼ 65.37% |