10% caret-ez-google-maps

Code Review | Caret Ez Google Maps

WordPress plugin Caret Ez Google Maps scored 10% from 54 tests.

About plugin

  • Plugin page: caret-ez-google-maps
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Jun 28, 2013
  • Latest release: Aug 6, 2018
  • Number of updates: 9
  • Update frequency: every 207.2 days
  • Top authors: caret (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,223 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/caret-ez-google-maps/CaretEzGoogleMaps.php+27
    Methods with the same name as their class will not be constructors in a future version of PHP; CaretEzGoogleMaps has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼60.57ms] Passed 4 tests

Server-side resources used by Caret Ez Google Maps
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.34 ▼38.95
Dashboard /wp-admin2.08 ▼1.226.88 ▼60.74
Posts /wp-admin/edit.php2.09 ▼1.276.07 ▼45.99
Add New Post /wp-admin/post-new.php2.09 ▼3.805.62 ▼96.59
Media Library /wp-admin/upload.php2.09 ▼1.146.97 ▼30.49

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Caret Ez Google Maps
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲6114.55 ▲0.1028.66 ▲26.7441.18 ▼3.46
Dashboard /wp-admin2,208 ▲84.86 ▼1.00109.64 ▲1.5041.57 ▼3.45
Posts /wp-admin/edit.php2,091 ▲22.01 ▼0.0041.94 ▲4.7936.06 ▼3.02
Add New Post /wp-admin/post-new.php1,535 ▲1623.33 ▼0.00696.58 ▲5.2952.74 ▼1.17
Media Library /wp-admin/upload.php1,390 ▲54.19 ▼0.0595.12 ▼16.0641.27 ▼6.79

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/caret-ez-google-maps/CaretEzGoogleMaps.php+27
    Methods with the same name as their class will not be constructors in a future version of PHP; CaretEzGoogleMaps has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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/caret-ez-google-maps/CaretEzGoogleMaps.php:31

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (編集画面), #2 (記事画面)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === caret-ez-google-maps === )
You can look at the official readme.txt

caret-ez-google-maps/CaretEzGoogleMaps.php 85% from 13 tests

"Caret Ez Google Maps" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("caret-ez-google-maps.php" instead of "CaretEzGoogleMaps.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected142 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1232175
JavaScript20063
CSS1004

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.16MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
button.png0.83KB0.63KB▼ 23.58%
screenshot-1.png13.39KB11.18KB▼ 16.49%
screenshot-2.png149.46KB135.03KB▼ 9.66%