90% gravitywp-count

Code Review | GravityWP - Count

WordPress plugin GravityWP - Count scored90%from 54 tests.

About plugin

  • Plugin page: gravitywp-count
  • Plugin version: 0.9.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1
  • WordPress version: 6.3.1
  • First release: Dec 19, 2015
  • Latest release: Jan 13, 2023
  • Number of updates: 56
  • Update frequency: every 46.4 days
  • Top authors: gravitywp (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

2,000+ active /18,620 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

This is a short check of server-side resources used by GravityWP - Count
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.11 ▼7.52
Dashboard /wp-admin3.33 ▼0.0147.78 ▼15.75
Posts /wp-admin/edit.php3.38 ▲0.0352.55 ▼0.58
Add New Post /wp-admin/post-new.php5.91 ▲0.0384.88 ▼24.35
Media Library /wp-admin/upload.php3.26 ▲0.0335.85 ▲1.08

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

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

Browser metrics Passed 4 tests

GravityWP - Count: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.221.72 ▼0.0339.70 ▼2.52
Dashboard /wp-admin2,206 ▲155.86 ▲0.96110.52 ▲1.2342.24 ▼0.64
Posts /wp-admin/edit.php2,092 ▼02.05 ▲0.0541.33 ▲4.8135.68 ▲0.52
Add New Post /wp-admin/post-new.php1,533 ▲1922.80 ▲5.17635.19 ▼60.5050.89 ▼7.73
Media Library /wp-admin/upload.php1,382 ▼34.18 ▼0.02100.22 ▼4.8643.22 ▼4.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: count, gravity forms, number field, forms, gravity form...

gravitywp-count/gravitywp-count.php Passed 13 tests

The main PHP script in "GravityWP - Count" version 0.9.9 is automatically included on every request by WordPress
119 characters long description:
Adds a shortcode to count, filter and display Gravity Forms entries or the total of a number field in multiple entries.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected234 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12235234

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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