84% access-category-password

Code Review | Access Category Password

WordPress plugin Access Category Password scored84%from 54 tests.

About plugin

  • Plugin page: access-category-p...
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3
  • WordPress version: 6.3.1
  • First release: Sep 20, 2014
  • Latest release: Oct 24, 2019
  • Number of updates: 59
  • Update frequency: every 31.5 days
  • Top authors: jojaba (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

4,000+ active /37,171 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼11.14ms] Passed 4 tests

A check of server-side resources used by Access Category Password
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1038.93 ▼17.20
Dashboard /wp-admin3.42 ▲0.0845.65 ▼23.01
Posts /wp-admin/edit.php3.53 ▲0.1850.30 ▼2.23
Add New Post /wp-admin/post-new.php6.00 ▲0.1285.99 ▼2.10
Media Library /wp-admin/upload.php3.34 ▲0.1235.95 ▲1.79
Access Category Password /wp-admin/options-general.php?page=acpwd_options_page3.3232.64

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Access Category Password
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.48 ▼0.121.74 ▼0.7239.49 ▼24.76
Dashboard /wp-admin2,213 ▲225.86 ▲0.95100.66 ▼3.0137.81 ▼4.38
Posts /wp-admin/edit.php2,096 ▲72.01 ▲0.0039.23 ▼5.3836.92 ▼2.77
Add New Post /wp-admin/post-new.php1,517 ▼1517.40 ▼5.84649.10 ▼32.4158.31 ▲2.53
Media Library /wp-admin/upload.php1,395 ▲134.21 ▲0.05100.41 ▲2.7842.57 ▼2.18
Access Category Password /wp-admin/options-general.php?page=acpwd_options_page1,1341.9533.1632.82

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
The following issues need your attention
  • 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/access-category-password/access-category-password.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: category, protect, password

access-category-password/access-category-password.php Passed 13 tests

The primary PHP file in "Access Category Password" version 1.5.1 is used by WordPress to initiate all plugin functionality
88 characters long description:
Protects posts in categories by setting a unique Password for all restricted categories.

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,432 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File35501,029884
PHP28797548

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.58
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%
Functions24
▷ Named functions24100.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
PNG images were not found in this plugin