Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/ilovemachineproblem-responsive-google-map/ilmp-index.php+25
Use of undefined constant yes - assumed 'yes' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.35ms] Passed 4 tests
An overview of server-side resources used by ILoveMachineProblem Responsive Google Map
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.47 ▼3.39 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.93 ▼3.54 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 41.46 ▼0.25 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 78.98 ▼13.74 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.95 ▼0.73 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 21 new options
New WordPress options |
---|
ilmp_zoom |
ilmp_infow |
widget_recent-posts |
ilmp_maptype |
db_upgraded |
ilmp_lng |
theysaidso_admin_options |
ilmp_height |
ilmp_infoh |
ilmp_ptcs |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for ILoveMachineProblem Responsive Google Map
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 14.26 ▲0.00 | 6.48 ▲4.70 | 41.86 ▼3.99 |
Dashboard /wp-admin | 2,201 ▲27 | 5.52 ▼0.10 | 89.68 ▼8.76 | 84.76 ▲38.69 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.52 ▲0.54 | 41.17 ▲5.15 | 33.36 ▼0.31 |
Add New Post /wp-admin/post-new.php | 1,699 ▲161 | 23.17 ▲0.02 | 641.26 ▼31.92 | 29.37 ▼28.34 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 5.01 ▲0.77 | 103.78 ▲10.75 | 62.05 ▲19.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/ilovemachineproblem-responsive-google-map/ilmp-index.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ilovemachineproblem-responsive-google-map/includes/ilmp-rgm-admin-page.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ilovemachineproblem-responsive-google-map/includes/ilmp-rgm-style.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ilovemachineproblem-responsive-google-map/includes/ilmp-rgm-custom-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ilovemachineproblem-responsive-google-map/includes/ilmp-rgm-script.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: google map, ilmp, responsive google map
ilovemachineproblem-responsive-google-map/ilmp-index.php 92% from 13 tests
The primary PHP file in "ILoveMachineProblem Responsive Google Map" version 2.0.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ilovemachineproblem-responsive-google-map.php" instead of "ilmp-index.php")
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
No dangerous file extensions were detected393 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 42 | 31 | 393 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ilmp-icon.png | 1.02KB | 0.20KB | ▼ 80.35% |