Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼1.20MB] [CPU: ▼42.06ms] Passed 4 tests
Analyzing server-side resources used by Simple Map
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.78 ▼0.68 | 13.48 ▼28.20 |
Dashboard /wp-admin | 2.81 ▼0.49 | 16.38 ▼32.57 |
Posts /wp-admin/edit.php | 2.81 ▼0.54 | 16.47 ▼30.96 |
Add New Post /wp-admin/post-new.php | 2.81 ▼3.07 | 19.50 ▼76.51 |
Media Library /wp-admin/upload.php | 2.81 ▼0.41 | 17.62 ▼14.10 |
Simple Map /wp-admin/options-general.php?page=simple_map | 2.82 | 16.22 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Map
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲112 | 13.21 ▼1.10 | 1.86 ▲0.11 | 37.82 ▼4.70 |
Dashboard /wp-admin | 2,222 ▲31 | 5.79 ▲0.88 | 96.89 ▼6.87 | 40.56 ▼4.31 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.02 | 36.38 ▼13.59 | 34.43 ▼4.00 |
Add New Post /wp-admin/post-new.php | 1,552 ▲38 | 23.41 ▲5.86 | 652.36 ▼20.35 | 53.02 ▼7.35 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.26 ▲0.00 | 109.18 ▼4.05 | 48.15 ▼0.26 |
Simple Map /wp-admin/options-general.php?page=simple_map | 830 | 2.02 | 26.45 | 27.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/simple-map/simple-map.php+272
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simple_map
- > Notice in wp-content/plugins/simple-map/simple-map.php+272
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-map/simple-map.php:69
- > 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)
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: address, google maps, shortcode, map
simple-map/simple-map.php Passed 13 tests
Analyzing the main PHP file in "Simple Map" version 4.9.0
39 characters long description:
Insert google map convert from address.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected448 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 85 | 112 | 290 |
JavaScript | 2 | 6 | 12 | 112 |
PO File | 1 | 18 | 20 | 46 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 11.76% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.32MB with 0.21MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/004.png | 71.13KB | 26.77KB | ▼ 62.37% |
images/003.png | 56.00KB | 24.12KB | ▼ 56.93% |
images/001.png | 112.79KB | 31.30KB | ▼ 72.25% |
images/002.png | 89.42KB | 31.65KB | ▼ 64.61% |