90% wp-reading-progress

Code Review | WP Reading Progress

WordPress plugin WP Reading Progress scored90%from 54 tests.

About plugin

  • Plugin page: wp-reading-progress
  • Plugin version: 1.5.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Jun 15, 2019
  • Latest release: Oct 25, 2023
  • Number of updates: 40
  • Update frequency: every 39.9 days
  • Top authors: ruigehond (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

2,000+ active /26,407 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.48ms] Passed 4 tests

Analyzing server-side resources used by WP Reading Progress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.33 ▲3.91
Dashboard /wp-admin3.38 ▲0.0743.48 ▼11.05
Posts /wp-admin/edit.php3.49 ▲0.1447.35 ▲1.69
Add New Post /wp-admin/post-new.php5.96 ▲0.0791.13 ▼1.32
Media Library /wp-admin/upload.php3.30 ▲0.0733.75 ▲0.78
WP Reading Progress /wp-admin/options-general.php?page=wp-reading-progress3.2732.30

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Reading Progress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7213.62 ▼0.882.06 ▲0.4743.23 ▲5.22
Dashboard /wp-admin2,205 ▲315.81 ▲0.2397.82 ▲9.6343.55 ▲2.98
Posts /wp-admin/edit.php2,115 ▲122.29 ▲0.2739.23 ▲4.2835.18 ▲0.68
Add New Post /wp-admin/post-new.php1,541 ▲518.08 ▼0.14603.82 ▼43.8044.73 ▼20.27
Media Library /wp-admin/upload.php1,413 ▲164.50 ▲0.2796.07 ▼5.5743.48 ▼4.64
WP Reading Progress /wp-admin/options-general.php?page=wp-reading-progress1,0402.3349.3235.49

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: reading, progressbar, progress

wp-reading-progress/wp-reading-progress.php Passed 13 tests

The primary PHP file in "WP Reading Progress" version 1.5.3 is used by WordPress to initiate all plugin functionality
118 characters long description:
Light weight customizable reading progress bar. Great UX on longreads! Customize under Settings -> WP Reading Progress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin379 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP11657311
PO File1191960
JavaScript2008

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.30
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%
Functions18
▷ Named functions1583.33%
▷ Anonymous functions316.67%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin