84% meta-counter-groundhogg

Code Review | Meta Counter For Groundhogg | An Counter Action Extension

WordPress plugin Meta Counter For Groundhogg | An Counter Action Extension scored 84% from 54 tests.

About plugin

  • Plugin page: meta-counter-grou...
  • Plugin version: 1.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Oct 8, 2021
  • Latest release: Oct 8, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: shadowinflux (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 320 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by Meta Counter For Groundhogg | An Counter Action Extension
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.14 ▼3.12
Dashboard /wp-admin3.32 ▲0.0244.39 ▼5.45
Posts /wp-admin/edit.php3.37 ▲0.0148.29 ▲1.27
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.49 ▼7.50
Media Library /wp-admin/upload.php3.24 ▲0.0140.64 ▲6.37

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Meta Counter For Groundhogg | An Counter Action Extension
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲7013.36 ▼1.021.76 ▼0.0538.23 ▼13.57
Dashboard /wp-admin2,208 ▲205.82 ▲0.9399.58 ▼20.2839.37 ▼11.80
Posts /wp-admin/edit.php2,093 ▲41.98 ▼0.0739.90 ▲3.5836.19 ▲1.36
Add New Post /wp-admin/post-new.php1,519 ▼1417.63 ▼5.87671.95 ▼24.5453.20 ▼4.75
Media Library /wp-admin/upload.php1,396 ▲84.25 ▲0.05109.89 ▲10.2048.11 ▲1.35

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Groundhogg\\Roles' not found in wp-content/plugins/meta-counter-groundhogg/includes/roles.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Groundhogg\\Updater' not found in wp-content/plugins/meta-counter-groundhogg/includes/updater.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Groundhogg\\Extension' not found in wp-content/plugins/meta-counter-groundhogg/includes/plugin.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Groundhogg\\Installer' not found in wp-content/plugins/meta-counter-groundhogg/includes/installer.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: marketing automation, crm, wordpress crm, email marketing, email automation

meta-counter-groundhogg/groundhogg-metacounter.php 85% from 13 tests

The main PHP script in "Meta Counter For Groundhogg | An Counter Action Extension" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("meta-counter-groundhogg.php" instead of "groundhogg-metacounter.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected273 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP781199273

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity1.83
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods29
▷ Static methods310.34%
▷ Public methods2068.97%
▷ Protected methods724.14%
▷ Private methods26.90%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants11
▷ Global constants1090.91%
▷ Class constants19.09%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/funnel-icons/meta-counter.png15.38KB6.24KB▼ 59.40%