Benchmarks
Plugin footprint 83% from 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.11MB] [CPU: ▼5.82ms] Passed 4 tests
An overview of server-side resources used by Simple Map With Shortcode
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.74 ▼3.79 |
Dashboard /wp-admin | 3.42 ▲0.11 | 44.25 ▼2.59 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 45.51 ▲1.32 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 72.88 ▼12.23 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 31.99 ▼4.65 |
Server storage [IO: ▲0.05MB] [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: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Simple Map With Shortcode: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲76 | 13.27 ▼0.97 | 1.73 ▼0.17 | 42.78 ▼6.83 |
Dashboard /wp-admin | 2,222 ▲40 | 4.85 ▼1.01 | 102.25 ▼5.07 | 41.52 ▼4.05 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.04 ▲0.04 | 39.59 ▲1.72 | 35.71 ▲4.54 |
Add New Post /wp-admin/post-new.php | 1,531 ▼11 | 23.04 ▲4.67 | 675.93 ▲12.68 | 58.87 ▲4.02 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.19 ▼0.05 | 94.90 ▼11.91 | 40.21 ▼4.99 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-map-with-shortcode/includes/class-shortcode.php:27
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: map, google map, map with marker, direction
simple-map-with-shortcode/simple-map-with-shortcode.php Passed 13 tests
The main file in "Simple Map With Shortcode" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
120 characters long description:
Create Google Maps in a minute with Simple Map With Shortcode WordPress plugin add google map with shortcode or php code
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
Success! There were no dangerous files found in this plugin268 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 54 | 96 | 244 |
CSS | 1 | 1 | 3 | 16 |
JavaScript | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 3.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 24 | |
▷ Static methods | 8 | 33.33% |
▷ Public methods | 15 | 62.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 37.50% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 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 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
assets/css/images/icon_new_marker.png | 1.43KB | 1.55KB | 0.00% |
assets/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
assets/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
assets/images/marker.png | 6.42KB | 0.91KB | ▼ 85.89% |