84% gmappedlocatedpost

Code Review | GMappedLocatedPost

WordPress plugin GMappedLocatedPost scored 84% from 54 tests.

About plugin

  • Plugin page: gmappedlocatedpost
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.6.1
  • WordPress version: 6.3.1
  • First release: Sep 23, 2016
  • Latest release: Sep 27, 2016
  • Number of updates: 12
  • Update frequency: every 0.6 days
  • Top authors: oeildenuit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 556 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by GMappedLocatedPost
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.45 ▼7.30
Dashboard /wp-admin3.32 ▲0.0243.56 ▼6.87
Posts /wp-admin/edit.php3.37 ▲0.0245.10 ▼2.08
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.12 ▲1.65
Media Library /wp-admin/upload.php3.24 ▲0.0134.51 ▲3.56

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for GMappedLocatedPost
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8114.62 ▲0.161.75 ▼0.0940.40 ▼3.46
Dashboard /wp-admin2,222 ▲315.85 ▲0.98106.83 ▼1.8142.40 ▼0.98
Posts /wp-admin/edit.php2,108 ▲192.01 ▲0.0440.94 ▲1.6135.47 ▲0.90
Add New Post /wp-admin/post-new.php6,471 ▲4,92920.80 ▲2.68869.65 ▲271.1651.77 ▲3.48
Media Library /wp-admin/upload.php1,404 ▲164.21 ▲0.1396.96 ▼5.5843.16 ▼1.32

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/gmappedlocatedpost/class/googleMappedPostSettings.class.php
    • > /wp-content/plugins/gmappedlocatedpost/GoogleMappedPostWPPlugin.php
    • > /wp-content/plugins/gmappedlocatedpost/class/googleMappedPostMetaBoxes.class.php

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 93% 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
These attributes need your attention:
  • Donate link: Invalid url: ""
The official readme.txt is a good inspiration

gmappedlocatedpost/GoogleMappedPostWPPlugin.php 92% from 13 tests

The main file in "GMappedLocatedPost" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gmappedlocatedpost.php" instead of "GoogleMappedPostWPPlugin.php")

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
There were no executable files found in this plugin440 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript25077219
PHP459101193
Markdown118028

PHP code Passed 2 tests

Analyzing 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.33
Average class complexity6.50
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1890.00%
▷ Protected methods00.00%
▷ Private methods210.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin