83% garrett-county-planning-tool-gcpt

Code Review | Garrett County Planning Tool (GCPT) - Public Health and Population Health Data and Planning Tool

WordPress plugin Garrett County Planning Tool (GCPT) - Public Health and Population Health Data and Planning Tool scored83%from 54 tests.

About plugin

  • Plugin page: garrett-county-pl...
  • Plugin version: 23.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 30, 2019
  • Latest release: Aug 7, 2023
  • Number of updates: 16
  • Update frequency: every 92.3 days
  • Top authors: garrettcountyhealthdepartment (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,081 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.89ms] Passed 4 tests

Analyzing server-side resources used by Garrett County Planning Tool (GCPT) - Public Health and Population Health Data and Planning Tool
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.21 ▼4.48
Dashboard /wp-admin3.31 ▼0.0449.12 ▼11.26
Posts /wp-admin/edit.php3.36 ▲0.0045.55 ▼4.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.36 ▼15.39
Media Library /wp-admin/upload.php3.23 ▲0.0037.08 ▲4.50

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Garrett County Planning Tool (GCPT) - Public Health and Population Health Data and Planning Tool
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▲0.301.84 ▼0.2239.07 ▼5.75
Dashboard /wp-admin2,189 ▲125.62 ▼0.0688.97 ▼2.4543.01 ▲0.13
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0237.75 ▼5.1735.28 ▼3.00
Add New Post /wp-admin/post-new.php1,526 ▼223.09 ▲0.05655.23 ▲17.3158.27 ▼4.67
Media Library /wp-admin/upload.php1,394 ▼04.21 ▼0.0296.26 ▼12.7740.69 ▼4.66

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/garrett-county-planning-tool-gcpt/index.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% 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
Please fix the following attributes: You can look at the official readme.txt

garrett-county-planning-tool-gcpt/index.php 77% from 13 tests

Analyzing the main PHP file in "Garrett County Planning Tool (GCPT) - Public Health and Population Health Data and Planning Tool" version 23.1.2
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("garrett-county-planning-tool-gcpt.php" instead of "index.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 96 characters long)

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 detected10,016 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript91,9827,0226,457
PHP1229803,530
CSS30029

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity15.22
▷ Minimum class complexity1.00
▷ Maximum class complexity36.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods40
▷ Static methods00.00%
▷ Public methods40100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions81
▷ Named functions81100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected