90% mi13-access-by-link

Code Review | mi13-access-by-link

WordPress plugin mi13-access-by-link scored90%from 54 tests.

About plugin

  • Plugin page: mi13-access-by-link
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.2
  • WordPress version: 6.3.1
  • First release: Dec 31, 2018
  • Latest release: Nov 25, 2023
  • Number of updates: 18
  • Update frequency: every 99.4 days
  • Top authors: mi13 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /749 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
Installer ran successfully

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

Analyzing server-side resources used by mi13-access-by-link
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0634.24 ▼4.58
Dashboard /wp-admin3.36 ▲0.0244.35 ▼13.42
Posts /wp-admin/edit.php3.41 ▲0.0646.16 ▼0.12
Add New Post /wp-admin/post-new.php5.94 ▲0.0681.45 ▼10.64
Media Library /wp-admin/upload.php3.28 ▲0.0634.90 ▲2.61
mi13 access by link /wp-admin/options-general.php?page=mi13_access_by_link3.2531.77

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
mi13_access_by_link
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

mi13-access-by-link: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4714.34 ▼0.371.73 ▲0.0537.42 ▼6.10
Dashboard /wp-admin2,199 ▲215.60 ▼0.0991.29 ▼14.8738.19 ▼11.70
Posts /wp-admin/edit.php2,104 ▲71.96 ▲0.0040.92 ▲3.4335.92 ▼0.03
Add New Post /wp-admin/post-new.php6,224 ▲4,69826.21 ▲2.99933.44 ▲299.1857.03 ▼2.48
Media Library /wp-admin/upload.php1,407 ▲44.19 ▲0.07100.62 ▼0.7843.13 ▲0.70
mi13 access by link /wp-admin/options-general.php?page=mi13_access_by_link8881.9924.3028.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed: Please take inspiration from this readme.txt

mi13-access-by-link/mi13-access-by-link.php Passed 13 tests

The principal PHP file in "mi13-access-by-link" v. 1.1 is loaded by WordPress automatically on each request
39 characters long description:
Access to your posts (pending) by link.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin317 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13019258
PO File1171859

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin