84% pure-css-circle-progress-bar

Code Review | Pure CSS Circle Progress bar

WordPress plugin Pure CSS Circle Progress bar scored 84% from 54 tests.

About plugin

  • Plugin page: pure-css-circle-p...
  • Plugin version: 1.2
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.0
  • WordPress version: 5.8.1
  • First release: Nov 16, 2018
  • Latest release: Dec 8, 2018
  • Number of updates: 20
  • Update frequency: every 1.1 days
  • Top authors: Safi Mohammad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 1,780 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼143.38ms] Passed 4 tests

An overview of server-side resources used by Pure CSS Circle Progress bar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1545.77 ▲23.24
Dashboard /wp-admin3.09 ▲0.0347.02 ▼6.90
Posts /wp-admin/edit.php3.14 ▲0.0347.21 ▲0.15
Add New Post /wp-admin/post-new.php5.44 ▲0.0192.78 ▼570.29
Media Library /wp-admin/upload.php3.03 ▲0.0345.49 ▲3.54

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options
widget_progress_bar

Browser metrics Passed 4 tests

An overview of browser requirements for Pure CSS Circle Progress bar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,681 ▲10915.90 ▼0.048.96 ▲0.2548.43 ▼6.09
Dashboard /wp-admin2,973 ▲405.87 ▼0.22138.97 ▼38.81119.59 ▲4.41
Posts /wp-admin/edit.php2,739 ▼02.70 ▼0.1274.80 ▲2.6796.76 ▼6.06
Add New Post /wp-admin/post-new.php1,683 ▲7918.95 ▲0.17428.82 ▲38.48125.22 ▲5.38
Media Library /wp-admin/upload.php1,810 ▼05.04 ▼0.06212.67 ▲59.04137.41 ▲15.55

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_progress_bar

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pure-css-circle-progress-bar/pure-css-circle-progress-bar.php:13

User-side errors Passed 1 test

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

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
These attributes need your attention:
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

pure-css-circle-progress-bar/pure-css-circle-progress-bar.php 92% from 13 tests

"Pure CSS Circle Progress bar" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 151 characters long)

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 detected126 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1813125
CSS1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.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 were not PNG files found in your plugin