89% wp-indicador-de-progreso-de-lectura

Code Review | WP Indicador de Progreso de Lectura

WordPress plugin WP Indicador de Progreso de Lectura scored89%from 54 tests.

About plugin

  • Plugin page: wp-indicador-de-p...
  • Plugin version: 1.6.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Apr 12, 2018
  • Latest release: Mar 31, 2023
  • Number of updates: 21
  • Update frequency: every 86.4 days
  • Top authors: jcglp (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /1,624 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.09MB] [CPU: ▼4.91ms] Passed 4 tests

Analyzing server-side resources used by WP Indicador de Progreso de Lectura
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0945.53 ▲0.49
Dashboard /wp-admin3.39 ▲0.0952.07 ▼3.79
Posts /wp-admin/edit.php3.51 ▲0.1551.42 ▼2.58
Add New Post /wp-admin/post-new.php5.97 ▲0.0988.25 ▼13.77
Media Library /wp-admin/upload.php3.32 ▲0.0937.97 ▲0.59
Reading Progress Indicator /wp-admin/options-general.php?page=wpipl_settings3.2934.95

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 8 new options
New WordPress options
wpipl_version
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
wpipl_color_barra_progreso

Browser metrics Passed 4 tests

An overview of browser requirements for WP Indicador de Progreso de Lectura
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.27 ▼0.381.92 ▼0.0243.11 ▼2.11
Dashboard /wp-admin2,196 ▲195.57 ▼0.1181.46 ▼9.9635.93 ▼7.99
Posts /wp-admin/edit.php2,104 ▲42.00 ▲0.0134.87 ▼3.2432.28 ▼4.46
Add New Post /wp-admin/post-new.php1,529 ▼1617.54 ▼5.86663.46 ▼21.2353.39 ▲2.59
Media Library /wp-admin/upload.php1,401 ▲14.21 ▼0.0897.79 ▼20.0942.78 ▼3.74
Reading Progress Indicator /wp-admin/options-general.php?page=wpipl_settings9192.1333.9035.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 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 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues 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: lectura, indicador, progreso, barra, entrada

wp-indicador-de-progreso-de-lectura/wp-ipl.php 85% from 13 tests

The primary PHP file in "WP Indicador de Progreso de Lectura" version 1.6.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-indicador-de-progreso-de-lectura.php" instead of "wp-ipl.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin468 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP6163262397
JavaScript4101733
CSS25023
Markdown110015

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity15.33
▷ Minimum class complexity6.00
▷ Maximum class complexity21.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2793.10%
▷ Protected methods00.00%
▷ Private methods26.90%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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 are no PNG files in this plugin