10% ilovemachineproblem-responsive-google-map

Code Review | ILoveMachineProblem Responsive Google Map

WordPress plugin ILoveMachineProblem Responsive Google Map scored10%from 54 tests.

About plugin

  • Plugin page: ilovemachineprobl...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.9.2
  • WordPress version: 6.3.1
  • First release: Feb 11, 2014
  • Latest release: Aug 29, 2014
  • Number of updates: 20
  • Update frequency: every 10.0 days
  • Top authors: justinedehonor (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,497 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.47 ▼3.39
Dashboard /wp-admin3.32 ▲0.0147.93 ▼3.54
Posts /wp-admin/edit.php3.37 ▲0.0141.46 ▼0.25
Add New Post /wp-admin/post-new.php5.92 ▲0.0378.98 ▼13.74
Media Library /wp-admin/upload.php3.24 ▲0.0132.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6914.26 ▲0.006.48 ▲4.7041.86 ▼3.99
Dashboard /wp-admin2,201 ▲275.52 ▼0.1089.68 ▼8.7684.76 ▲38.69
Posts /wp-admin/edit.php2,124 ▲242.52 ▲0.5441.17 ▲5.1533.36 ▼0.31
Add New Post /wp-admin/post-new.php1,699 ▲16123.17 ▲0.02641.26 ▼31.9229.37 ▼28.34
Media Library /wp-admin/upload.php1,421 ▲215.01 ▲0.77103.78 ▲10.7562.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP64231393

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 code0.08
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/ilmp-icon.png1.02KB0.20KB▼ 80.35%