84% access

Code Review | Access

WordPress plugin Access scored84%from 54 tests.

About plugin

  • Plugin page: access
  • Plugin version: 0.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-3.7.0
  • WordPress version: 6.3.1
  • First release: Nov 4, 2013
  • Latest release: Nov 4, 2013
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: ryanve (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,521 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 gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.18ms] Passed 4 tests

A check of server-side resources used by Access
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0749.88 ▼2.15
Dashboard /wp-admin3.36 ▲0.0551.45 ▼3.94
Posts /wp-admin/edit.php3.41 ▲0.0548.61 ▼6.83
Add New Post /wp-admin/post-new.php5.94 ▲0.0592.40 ▼11.78
Media Library /wp-admin/upload.php3.28 ▲0.0541.24 ▲1.82
Access /wp-admin/edit-tags.php?taxonomy=access&post_type=page3.2735.69
Access /wp-admin/edit-tags.php?taxonomy=access&post_type=attachment3.2734.29
Access /wp-admin/edit-tags.php?taxonomy=access3.2734.81

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Access
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6613.27 ▼1.481.84 ▼0.5039.89 ▼6.30
Dashboard /wp-admin2,236 ▲305.88 ▼0.02105.58 ▼3.9044.05 ▲5.07
Posts /wp-admin/edit.php2,129 ▲291.97 ▼0.0638.48 ▼3.9736.61 ▼6.54
Add New Post /wp-admin/post-new.php1,554 ▲923.19 ▼0.05601.57 ▲0.2280.98 ▲17.47
Media Library /wp-admin/upload.php1,412 ▲154.20 ▼0.05101.36 ▼2.8843.48 ▼0.41
Access /wp-admin/edit-tags.php?taxonomy=access&post_type=page1,2892.1426.9628.98
Access /wp-admin/edit-tags.php?taxonomy=access&post_type=attachment1,2862.1728.4832.35
Access /wp-admin/edit-tags.php?taxonomy=access1,2862.1428.6830.67

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
  • 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/access/access.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === access === )
The official readme.txt is a good inspiration

access/access.php Passed 13 tests

The principal PHP file in "Access" v. 0.5.1 is loaded by WordPress automatically on each request
84 characters long description:
Control content access via a taxonomy that accepts user IDs, roles, or capabilities.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin145 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP161476
Markdown127069

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.73
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%
Functions9
▷ Named functions00.00%
▷ Anonymous functions9100.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