78% accesstype

Code Review | AccessType

WordPress plugin AccessType scored 78% from 54 tests.

About plugin

  • Plugin page: accesstype
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.0-5.8
  • WordPress version: 5.9.2
  • First release: Sep 16, 2020
  • Latest release: Nov 17, 2021
  • Number of updates: 30
  • Update frequency: every 14.2 days
  • Top authors: accesstype (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 455 total downloads


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.79MB] [CPU: ▼307.89ms] Passed 4 tests

This is a short check of server-side resources used by AccessType
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.1953.68 ▲4.28
Dashboard /wp-admin3.55 ▲0.1536.91 ▲3.43
Posts /wp-admin/edit.php3.78 ▲0.1439.59 ▲2.89
Add New Post /wp-admin/post-new.php3.37 ▼3.5932.15 ▼1,236.35
Media Library /wp-admin/upload.php3.43 ▲0.1325.67 ▼1.54

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by AccessType
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,919 ▲16516.94 ▲1.0213.09 ▲6.393.64 ▲1.22
Dashboard /wp-admin2,981 ▲1206.98 ▲0.79124.54 ▼18.90168.71 ▲2.07
Posts /wp-admin/edit.php2,887 ▲1933.22 ▼0.0267.53 ▲0.90145.95 ▲4.03
Add New Post /wp-admin/post-new.php1,874 ▲20624.37 ▲5.86407.70 ▲34.82208.26 ▲51.46
Media Library /wp-admin/upload.php1,787 ▲895.96 ▲0.49125.40 ▼9.43184.86 ▼8.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 2 options in the database
    • accesstype-plan-heading
    • accesstype-plan-sub-heading

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/accesstype/accesstype.php
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/accesstype/includes/shortcodes.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accesstype/includes/functions/metaboxes.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accesstype/includes/apis.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/accesstype/includes/functions/functions.php:51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/accesstype/includes/functions/accesstype_visibility.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/accesstype/includes/functions/accesstype_admin.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in accesstype/assets to your readme.txt
  • Contributors: The plugin contributors field is not present
You can take inspiration from this readme.txt

accesstype/accesstype.php 92% from 13 tests

"AccessType" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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
Good job! No executable or dangerous file extensions detected1,258 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity15.00
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity4.89
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
▷ Static methods18100.00%
▷ Public methods844.44%
▷ Protected methods00.00%
▷ Private methods1055.56%
▷ Named functions2395.83%
▷ Anonymous functions14.17%
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin