84% ezgmaps

Code Review | EZGMap

WordPress plugin EZGMap scored84%from 54 tests.

About plugin

  • Plugin page: ezgmaps
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 28, 2017
  • Latest release: Aug 29, 2017
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: tradesouthwest@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /679 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.96ms] Passed 4 tests

Server-side resources used by EZGMap
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.95 ▲1.40
Dashboard /wp-admin3.36 ▲0.0254.10 ▼9.95
Posts /wp-admin/edit.php3.41 ▲0.0548.49 ▼6.73
Add New Post /wp-admin/post-new.php5.95 ▲0.0693.83 ▼4.57
Media Library /wp-admin/upload.php3.28 ▲0.0538.19 ▲2.48
EZGMaps /wp-admin/options-general.php?page=ezgmaps3.2329.92

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
ezgmaps_settings_plugin_activated
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

EZGMap: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.24 ▲0.051.72 ▲0.1043.62 ▲2.17
Dashboard /wp-admin2,202 ▲225.62 ▼0.0390.37 ▲0.2639.24 ▼0.79
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0536.27 ▼3.9434.90 ▼1.30
Add New Post /wp-admin/post-new.php6,267 ▲4,73026.02 ▲7.65913.87 ▲288.6160.24 ▼4.95
Media Library /wp-admin/upload.php1,401 ▲44.20 ▲0.02112.32 ▲13.0446.83 ▲1.43
EZGMaps /wp-admin/options-general.php?page=ezgmaps9242.1724.2731.15

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ezgmaps
    • > Notice in wp-content/plugins/ezgmaps/admin/ezgmaps-tswplugin-admin.php+170
    Trying to access array offset on value of type bool

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: There are too many tags (11 tag instead of maximum 10)
Please take inspiration from this readme.txt

ezgmaps/ezgmaps.php Passed 13 tests

The entry point to "EZGMap" version 1.0.0 is a PHP file that has certain tags in its header comment area
51 characters long description:
Fast and easy way to get Google Maps on your pages.

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
Good job! No executable or dangerous file extensions detected363 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP572171337
CSS12526

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
lib/img-fa-twitter.png1.12KB0.90KB▼ 19.61%