83% jeba-smart-map

Code Review | Jeba Map Plugin

WordPress plugin Jeba Map Plugin scored83%from 54 tests.

About plugin

  • Plugin page: jeba-smart-map
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0.1
  • WordPress version: 6.3.1
  • First release: Feb 2, 2015
  • Latest release: Jul 22, 2015
  • Number of updates: 9
  • Update frequency: every 19.0 days
  • Top authors: jahed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /688 total downloads

Benchmarks

Plugin footprint 83% 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: ▼0.00MB] [CPU: ▼10.33ms] Passed 4 tests

A check of server-side resources used by Jeba Map Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.57 ▼2.10
Dashboard /wp-admin3.31 ▼0.0346.96 ▼16.08
Posts /wp-admin/edit.php3.37 ▲0.0145.96 ▼2.65
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.91 ▼20.47
Media Library /wp-admin/upload.php3.24 ▲0.0136.20 ▲1.28

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Jeba Map Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲17614.55 ▲0.2726.82 ▲25.0836.07 ▼7.80
Dashboard /wp-admin2,206 ▲185.98 ▲0.08100.55 ▼18.4545.09 ▲1.33
Posts /wp-admin/edit.php2,086 ▼02.03 ▲0.0235.08 ▲0.2134.19 ▼1.68
Add New Post /wp-admin/post-new.php1,514 ▼017.64 ▲0.14688.99 ▲0.5159.85 ▲10.35
Media Library /wp-admin/upload.php1,388 ▲34.24 ▲0.0496.65 ▼18.7641.39 ▼7.20

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jeba-smart-map/jeba-gmap.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (How to use shortcode in editor.), #2 (Another demo.)
  • Contributors: The plugin contributors field is not present
The official readme.txt is a good inspiration

jeba-smart-map/jeba-gmap.php 85% from 13 tests

The main file in "Jeba Map Plugin" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 174 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("jeba-smart-map.php" instead of "jeba-gmap.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected852 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript48227784
PHP115950
CSS15118

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/img/map-marker.png1.31KB1.16KB▼ 11.33%
js/map-marker.png1.31KB1.16KB▼ 11.33%