78% cds-maps-wp

Code Review | CDS Google Maps

WordPress plugin CDS Google Maps scored78%from 54 tests.

About plugin

  • Plugin page: cds-maps-wp
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 8, 2017
  • Latest release: Nov 13, 2017
  • Number of updates: 7
  • Update frequency: every 0.9 days
  • Top authors: carmine96 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /627 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by CDS Google Maps
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.22 ▼1.73
Dashboard /wp-admin3.32 ▲0.0246.51 ▼5.46
Posts /wp-admin/edit.php3.37 ▲0.0249.45 ▲4.12
Add New Post /wp-admin/post-new.php5.93 ▲0.04106.49 ▲7.45
Media Library /wp-admin/upload.php3.25 ▲0.0234.59 ▼0.55

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for CDS Google Maps
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲9317.24 ▲2.8614.43 ▲12.0139.66 ▼10.40
Dashboard /wp-admin2,251 ▲637.46 ▲1.65148.82 ▲32.7742.87 ▼3.38
Posts /wp-admin/edit.php2,134 ▲454.45 ▲2.4363.30 ▲28.9438.69 ▲4.57
Add New Post /wp-admin/post-new.php6,440 ▲4,92624.98 ▲7.48901.19 ▲212.3542.35 ▼8.76
Media Library /wp-admin/upload.php1,433 ▲486.42 ▲2.25130.99 ▲30.1840.96 ▼0.45

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% 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 0% from 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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/cds-maps-wp/assets/include/short.php
  • 18× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: a in wp-content/plugins/cds-maps-wp/assets/include/short.php on line 11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/cds-maps-wp/assets/include/short.php on line 7
    • > PHP Notice
      Undefined variable: a in wp-content/plugins/cds-maps-wp/assets/include/short.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/cds-maps-wp/assets/include/short.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cds-maps-wp/assets/include/meta_box_maps_wp.php:3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/cds-maps-wp/assets/include/short.php on line 9
    • > PHP Notice
      Undefined variable: a in wp-content/plugins/cds-maps-wp/assets/include/short.php on line 18
    • > PHP Notice
      Undefined variable: a in wp-content/plugins/cds-maps-wp/assets/include/short.php on line 22
    • > PHP Notice
      Undefined variable: a in wp-content/plugins/cds-maps-wp/assets/include/short.php on line 7
    • > PHP Notice
      Undefined variable: a in wp-content/plugins/cds-maps-wp/assets/include/short.php on line 9

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 97% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in cds-maps-wp/assets to your readme.txt
You can look at the official readme.txt

cds-maps-wp/cds-maps-wp.php Passed 13 tests

The main PHP script in "CDS Google Maps" version 1.0 is automatically included on every request by WordPress
33 characters long description:
Custom Google Maps for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,562 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP629121,281
CSS1330187
JavaScript119094

PHP code Passed 2 tests

This is a very shot 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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
PNG images were not found in this plugin