79% oppso-maps

Code Review | Oppso Maps

WordPress plugin Oppso Maps scored79%from 54 tests.

About plugin

  • Plugin page: oppso-maps
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 22, 2013
  • Latest release: Apr 23, 2013
  • Number of updates: 11
  • Update frequency: every 0.1 days
  • Top authors: danbwb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,597 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.75ms] Passed 4 tests

Analyzing server-side resources used by Oppso Maps
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.23 ▲2.42
Dashboard /wp-admin3.33 ▲0.0245.25 ▼0.10
Posts /wp-admin/edit.php3.38 ▲0.0247.92 ▲1.74
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.64 ▼2.51
Media Library /wp-admin/upload.php3.25 ▲0.0233.00 ▼2.13
Oppso Maps /wp-admin/options-general.php?page=oppso-maps/oppso-maps.php3.2232.40

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Oppso Maps
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲13014.90 ▲0.5210.59 ▲8.5642.73 ▼0.44
Dashboard /wp-admin2,213 ▲255.85 ▲0.95107.65 ▲5.1341.79 ▲1.26
Posts /wp-admin/edit.php2,102 ▲102.54 ▲0.5039.20 ▼1.7631.18 ▼6.32
Add New Post /wp-admin/post-new.php1,525 ▼823.53 ▲0.22610.00 ▼59.7633.71 ▼30.08
Media Library /wp-admin/upload.php1,395 ▲74.97 ▲0.76102.59 ▼13.6742.80 ▼3.55
Oppso Maps /wp-admin/options-general.php?page=oppso-maps/oppso-maps.php9492.3231.6925.43

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 plugin_basename() in wp-content/plugins/oppso-maps/oppso-maps.php:23

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=oppso-maps/oppso-maps.php
    • > Console-api (warning) in unknown
    https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&ver=6.3.1 210:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
    • > GET request to /wp-admin/options-general.php?page=oppso-maps/oppso-maps.php
    • > Javascript (severe) in unknown
    /wp-content/plugins/oppso-maps/js/oppso-map.js?ver=6.3.1 134:31 Uncaught TypeError: jQuery(...).live is not a function

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: google maps, geocoder, marker, google map v3, maps...

oppso-maps/oppso-maps.php Passed 13 tests

The principal PHP file in "Oppso Maps" v. 1.0 is loaded by WordPress automatically on each request
115 characters long description:
Add a Google Map to your wordpress site! Oppso Maps creates a map shortcode to use in posts, pages or text widgets.

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
There were no executable files found in this plugin229 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1452135
JavaScript125290
CSS1004

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin