90% yumjam-simple-map-shortcode

Code Review | YumJam Simple Map Shortcode

WordPress plugin YumJam Simple Map Shortcode scored 90% from 54 tests.

About plugin

  • Plugin page: yumjam-simple-map...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0.0
  • WordPress version: 6.3.1
  • First release: Jul 10, 2018
  • Latest release: Dec 10, 2018
  • Number of updates: 8
  • Update frequency: every 19.1 days
  • Top authors: matt.burnett (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 461 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.43ms] Passed 4 tests

This is a short check of server-side resources used by YumJam Simple Map Shortcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0739.03 ▼1.21
Dashboard /wp-admin3.39 ▲0.0847.77 ▼3.76
Posts /wp-admin/edit.php3.44 ▲0.0850.06 ▼0.48
Add New Post /wp-admin/post-new.php5.98 ▲0.0998.17 ▲0.59
Media Library /wp-admin/upload.php3.31 ▲0.0835.68 ▼0.26
YumJam Map /wp-admin/options-general.php?page=sm_options3.2933.89

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
sm_load_google_script
sm_enable
db_upgraded
widget_recent-posts
can_compress_scripts
sm_google_maps_api_key
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for YumJam Simple Map Shortcode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲13413.63 ▼0.744.79 ▲2.7139.30 ▼7.95
Dashboard /wp-admin2,217 ▲294.86 ▲0.0398.96 ▼11.2436.59 ▼9.11
Posts /wp-admin/edit.php2,097 ▲82.03 ▲0.0238.73 ▼1.6432.24 ▼3.91
Add New Post /wp-admin/post-new.php1,530 ▼418.79 ▼4.53675.87 ▼27.7659.95 ▲2.27
Media Library /wp-admin/upload.php1,396 ▲54.21 ▲0.0198.22 ▼7.3142.48 ▼5.44
YumJam Map /wp-admin/options-general.php?page=sm_options1,0992.0625.5234.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: google map, map pin, simple map, map api, contact page...

yumjam-simple-map-shortcode/yumjam-simple-map-shortcode.php Passed 13 tests

"YumJam Simple Map Shortcode" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
72 characters long description:
Display a simple Maps via a WordPress shortcode posts, pages or 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 plugin358 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP26181344
JavaScript24811
CSS2193

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity37.00
▷ Minimum class complexity37.00
▷ Maximum class complexity37.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin