83% geo-target-dragon-radar

Code Review | Geo-Target Dragon Radar

WordPress plugin Geo-Target Dragon Radar scored83%from 54 tests.

About plugin

  • Plugin page: geo-target-dragon...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 23, 2021
  • Latest release: Aug 21, 2023
  • Number of updates: 15
  • Update frequency: every 56.7 days
  • Top authors: gothamdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /578 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.03MB] [CPU: ▼6.66ms] Passed 4 tests

This is a short check of server-side resources used by Geo-Target Dragon Radar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.84 ▼1.39
Dashboard /wp-admin3.34 ▲0.0344.79 ▼2.38
Posts /wp-admin/edit.php3.39 ▲0.0347.48 ▲1.64
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.23 ▼22.75
Media Library /wp-admin/upload.php3.26 ▲0.0331.72 ▼0.13

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Geo-Target Dragon Radar: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.136.39 ▲4.6245.45 ▲1.30
Dashboard /wp-admin2,206 ▲214.84 ▼1.07108.54 ▼8.2141.65 ▼6.00
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0239.08 ▲1.9337.48 ▲0.86
Add New Post /wp-admin/post-new.php1,533 ▲1923.16 ▲5.61627.63 ▼52.4453.31 ▼18.86
Media Library /wp-admin/upload.php1,382 ▼94.22 ▼0.0797.44 ▼3.4843.78 ▼2.70

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/geo-target-dragon-radar/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === Geo-Target Dragon Radar === )
You can take inspiration from this readme.txt

geo-target-dragon-radar/dragonradar.php 85% from 13 tests

The entry point to "Geo-Target Dragon Radar" version 1.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 182 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("geo-target-dragon-radar.php" instead of "dragonradar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin202 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36155155
JavaScript17247

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin