89% counting-number-block

Code Review | Counting Number Block

WordPress plugin Counting Number Block scored89%from 54 tests.

About plugin

  • Plugin page: counting-number-b...
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Jul 13, 2022
  • Latest release: Aug 14, 2023
  • Number of updates: 15
  • Update frequency: every 26.5 days
  • Top authors: Mr2P (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /2,403 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Counting Number Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0251.52 ▲10.80
Dashboard /wp-admin3.33 ▼0.0246.60 ▼12.36
Posts /wp-admin/edit.php3.38 ▲0.0246.17 ▼0.32
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.35 ▼10.52
Media Library /wp-admin/upload.php3.25 ▲0.0234.74 ▲1.52

Server storage [IO: ▲0.03MB] [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
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Counting Number Block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.30 ▼1.111.88 ▲0.0940.04 ▼9.89
Dashboard /wp-admin2,209 ▲214.86 ▼0.96100.45 ▼18.2739.68 ▼3.55
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0538.28 ▲0.5634.69 ▲1.60
Add New Post /wp-admin/post-new.php1,673 ▲14022.07 ▼1.16673.74 ▼16.3556.13 ▼1.41
Media Library /wp-admin/upload.php1,391 ▲34.16 ▼0.0596.22 ▼11.8646.17 ▲5.27

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

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
The smoke test was a success, however most plugin functionality was not tested

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: block, gutenberg, animation, number, counter

counting-number-block/counting-number.php 77% from 13 tests

Analyzing the main PHP file in "Counting Number Block" version 1.0.7
You should first fix the following items:
  • Requires PHP: Required version must match the one declared in readme.txt ("7.0.0" instead of "7.0")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("counting-number-block.php" instead of "counting-number.php")
  • Requires at least: Required version must match the one declared in readme.txt ("5.9.0" instead of "5.9")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin122 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JSON100112
PHP32208
JavaScript2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin