83% max-access

Code Review | Max Access

WordPress plugin Max Access scored83%from 54 tests.

About plugin

  • Plugin page: max-access
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Apr 21, 2021
  • Latest release: Sep 12, 2023
  • Number of updates: 24
  • Update frequency: every 36.5 days
  • Top authors: onlineada (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /797 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.04ms] Passed 4 tests

Server-side resources used by Max Access
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.02 ▲3.41
Dashboard /wp-admin3.33 ▲0.0249.09 ▼3.06
Posts /wp-admin/edit.php3.44 ▲0.0846.63 ▼4.23
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.89 ▼15.38
Media Library /wp-admin/upload.php3.25 ▲0.0240.10 ▲2.51

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Max Access
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲4713.27 ▼1.022.03 ▲0.1242.25 ▼5.79
Dashboard /wp-admin2,239 ▲394.87 ▼0.0199.30 ▼1.4837.54 ▼4.07
Posts /wp-admin/edit.php2,118 ▲182.03 ▲0.0038.69 ▼2.4435.41 ▼1.40
Add New Post /wp-admin/post-new.php1,566 ▲3523.18 ▲0.06659.42 ▲10.6968.13 ▲15.05
Media Library /wp-admin/upload.php1,412 ▲124.20 ▼0.0696.82 ▼16.9044.55 ▼3.66

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • oada_activation_token
    • error_message
    • theysaidso_admin_options
    • widget_recent-posts
    • license_activated

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Trait 'MaxAccess\\Traits\\Singleton' not found in wp-content/plugins/max-access/src/Plugin.php on line 7
    • > PHP Fatal error
      Trait 'MaxAccess\\Traits\\Singleton' not found in wp-content/plugins/max-access/src/Admin.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === max-access === )
The official readme.txt is a good inspiration

max-access/maxaccess.php 85% from 13 tests

"Max Access" version 1.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("max-access.php" instead of "maxaccess.php")

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 plugin847 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13280175774
Markdown223053
JSON20020

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity14.14
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits1
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods57
▷ Static methods1628.07%
▷ Public methods5189.47%
▷ Protected methods11.75%
▷ Private methods58.77%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/assets/maxaccessicon.png6.25KB0.85KB▼ 86.41%
src/assets/maxaccesslogo.png16.92KB7.59KB▼ 55.17%