84% content-progress

Code Review | Content Progress

WordPress plugin Content Progress scored 84% from 54 tests.

About plugin

  • Plugin page: content-progress
  • Plugin version: 1.3.13
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.7
  • WordPress version: 5.9.2
  • First release: Oct 29, 2011
  • Latest release: Feb 4, 2017
  • Number of updates: 39
  • Update frequency: every 49.3 days
  • Top authors: joedolson (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active / 9,771 total downloads

Benchmarks

Plugin footprint 83% 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.04MB] [CPU: ▼298.39ms] Passed 4 tests

A check of server-side resources used by Content Progress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0255.91 ▲4.69
Dashboard /wp-admin3.50 ▲0.0931.83 ▼2.87
Posts /wp-admin/edit.php3.72 ▲0.0836.11 ▼0.76
Add New Post /wp-admin/post-new.php6.96 ▼0.0198.31 ▼1,188.27
Media Library /wp-admin/upload.php3.38 ▲0.0925.00 ▼1.65
Content Progress /wp-admin/options-general.php?page=content-progress/content-progress.php3.3824.62

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 39 new files
Database: no new tables, 2 new options
New WordPress options
cp_version
cp_statuses

Browser metrics Passed 4 tests

This is an overview of browser requirements for Content Progress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,771 ▲1715.89 ▼0.195.74 ▼0.182.39 ▼0.15
Dashboard /wp-admin2,914 ▲536.12 ▼0.02116.79 ▼24.09156.56 ▼12.84
Posts /wp-admin/edit.php2,782 ▲913.37 ▲0.1362.21 ▼1.90138.42 ▼2.95
Add New Post /wp-admin/post-new.php1,746 ▲2717.86 ▼4.55433.52 ▲6.84172.25 ▲15.30
Media Library /wp-admin/upload.php1,703 ▲85.57 ▲0.02134.08 ▲0.42186.20 ▼2.89
Content Progress /wp-admin/options-general.php?page=content-progress/content-progress.php2,0903.87103.74208.08

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 2 options
    • cp_version
    • cp_statuses

Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-progress/content-progress.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
Please take inspiration from this readme.txt

content-progress/content-progress.php Passed 13 tests

The main PHP file in "Content Progress" ver. 1.3.13 adds more information about the plugin and also serves as the entry point for this plugin
106 characters long description:
Adds a column to each post/page or custom post type indicating whether content has been added to the page.

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
Success! There were no dangerous files found in this plugin1,088 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP27544649
PO File5163168373
CSS110043
JavaScript13823

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
21 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/idea.png2.15KB1.61KB▼ 25.10%
images/incomplete.png1.05KB0.87KB▼ 17.69%
screenshot-1.png19.77KB19.82KB0.00%
images/questions.png2.30KB1.75KB▼ 24.03%
images/star.png1.71KB1.52KB▼ 10.91%