100% remove-protected

Code Review | Remove Protected

WordPress plugin Remove Protected scored 100% from 54 tests.

About plugin

  • Plugin page: remove-protected
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.7.3
  • WordPress version: 5.8.1
  • First release: Nov 3, 2013
  • Latest release: Mar 24, 2017
  • Number of updates: 7
  • Update frequency: every 176.7 days
  • Top authors: aubreypwd (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

800+ active / 6,407 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼139.34ms] Passed 4 tests

This is a short check of server-side resources used by Remove Protected
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1235.24 ▲8.41
Dashboard /wp-admin3.07 ▲0.0146.53 ▼0.02
Posts /wp-admin/edit.php3.12 ▲0.0145.43 ▼1.29
Add New Post /wp-admin/post-new.php5.42 ▼0.0193.29 ▼558.35
Media Library /wp-admin/upload.php3.01 ▲0.0133.45 ▲2.29

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remove Protected
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,702 ▲10616.07 ▲0.508.59 ▲0.6049.84 ▼4.07
Dashboard /wp-admin2,967 ▲365.89 ▼0.03149.18 ▼4.85120.47 ▼6.20
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0069.39 ▼0.19100.94 ▲15.00
Add New Post /wp-admin/post-new.php1,683 ▲10218.73 ▼1.96393.58 ▼1.47115.43 ▲4.94
Media Library /wp-admin/upload.php1,807 ▼34.99 ▲0.01164.25 ▲2.09125.39 ▼4.80

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: remove, title, protected, password

remove-protected/remove-protected.php Passed 13 tests

This is the main PHP file of "Remove Protected" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
103 characters long description:
This small plugin will remove "Protected: " from your title names on pages that are password protected.

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 plugin26 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3134923
Markdown1203

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin