74% author-work-in-progress-bar

Code Review | Author WIP Progress Bar

WordPress plugin Author WIP Progress Bar scored74%from 54 tests.

About plugin

  • Plugin page: author-work-in-pr...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.5-6.3
  • WordPress version: 6.3.1
  • First release: Nov 4, 2015
  • Latest release: Aug 31, 2023
  • Number of updates: 50
  • Update frequency: every 57.2 days
  • Top authors: webzu2 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

600+ active /8,022 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.85MB] [CPU: ▼31.90ms] Passed 4 tests

Server-side resources used by Author WIP Progress Bar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1040.99 ▲2.10
Dashboard /wp-admin3.10 ▼0.2127.46 ▼24.31
Posts /wp-admin/edit.php3.10 ▼0.2632.09 ▼17.58
Add New Post /wp-admin/post-new.php3.10 ▼2.7927.56 ▼73.19
Media Library /wp-admin/upload.php3.10 ▼0.1324.57 ▼12.51

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: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_pbp_progress_bar_widget

Browser metrics Passed 4 tests

Checking browser requirements for Author WIP Progress Bar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,052 ▲29115.10 ▲0.705.13 ▲3.3939.78 ▼6.89
Dashboard /wp-admin2,374 ▲1716.45 ▲1.55141.78 ▲30.0343.98 ▲2.44
Posts /wp-admin/edit.php2,279 ▲1793.40 ▲1.3547.89 ▲6.2929.44 ▼6.49
Add New Post /wp-admin/post-new.php1,559 ▲2423.29 ▲0.04603.63 ▼18.9134.60 ▼26.04
Media Library /wp-admin/upload.php1,416 ▲194.26 ▲0.0280.55 ▼38.0554.84 ▲6.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_pbp_progress_bar_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/author-work-in-progress-bar/progress_widget.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/author-work-in-progress-bar/generate_shortcode.php:92

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

author-work-in-progress-bar/index.php 92% from 13 tests

The principal PHP file in "Author WIP Progress Bar" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("author-work-in-progress-bar.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin716 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP413091511
CSS256205

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.71
Average class complexity78.00
▷ Minimum class complexity78.00
▷ Maximum class complexity78.00
Average method complexity16.40
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 were not PNG files found in your plugin