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 gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼148.38ms] Passed 4 tests
A check of server-side resources used by SM Google Maps
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 44.64 ▲19.07 |
Dashboard /wp-admin | 3.07 ▲0.01 | 44.63 ▼5.66 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 48.67 ▲13.22 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.00 | 96.56 ▼590.38 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 30.59 ▼10.70 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_smgooglemaps_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for SM Google Maps
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.92 ▲0.55 | 8.30 ▼0.61 | 50.92 ▼6.07 |
Dashboard /wp-admin | 2,967 ▲36 | 5.90 ▼0.01 | 143.62 ▼12.43 | 117.33 ▲0.20 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▲0.00 | 72.78 ▲2.61 | 102.43 ▲6.03 |
Add New Post /wp-admin/post-new.php | 1,591 ▼92 | 18.73 ▼0.07 | 377.01 ▼84.62 | 111.31 ▼20.97 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.03 ▼0.01 | 174.07 ▲9.51 | 128.68 ▼7.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_smgooglemaps_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sm-google-maps/sm-google-maps.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: A description for screenshot #3 is required in sm-google-maps/assets to your readme.txt
sm-google-maps/sm-google-maps.php Passed 13 tests
"SM Google Maps" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
32 characters long description:
Google Maps plugin for wordpress
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
There were no executable files found in this plugin111 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 15 | 33 | 111 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin