90% nk-progress-counter-block

Code Review | NK - Progress Counter Block

WordPress plugin NK - Progress Counter Block scored 90% from 54 tests.

About plugin

  • Plugin page: nk-progress-count...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Mar 19, 2019
  • Latest release: Dec 20, 2019
  • Number of updates: 10
  • Update frequency: every 27.7 days
  • Top authors: kailanitish90 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,642 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.48ms] Passed 4 tests

Analyzing server-side resources used by NK - Progress Counter Block
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.13 ▼10.01
Dashboard /wp-admin3.31 ▲0.0145.44 ▼5.90
Posts /wp-admin/edit.php3.36 ▲0.0049.78 ▲0.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.32 ▼10.02
Media Library /wp-admin/upload.php3.23 ▲0.0037.96 ▲2.81

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

NK - Progress Counter Block: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲14813.94 ▼0.445.46 ▲3.4638.37 ▼4.59
Dashboard /wp-admin2,206 ▲155.86 ▲1.02106.46 ▼10.2141.62 ▼8.46
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0538.88 ▲2.4835.34 ▼1.17
Add New Post /wp-admin/post-new.php6,585 ▲5,07129.31 ▲11.74932.98 ▲320.8957.90 ▼2.25
Media Library /wp-admin/upload.php1,388 ▲34.16 ▼0.10102.75 ▲0.9246.17 ▲2.61

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: circle, counter, gutenberg

nk-progress-counter-block/nk-progress-counter-block.php Passed 13 tests

The principal PHP file in "NK - Progress Counter Block" v. 1.0.0 is loaded by WordPress automatically on each request
86 characters long description:
Progress Counter Block plugin provide to add circle or bar counter with color settings

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 detected420 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21738373
PHP262126
CSS24521

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin