84% samohyb-goodaccess

Code Review | Samohyb GoodAccess

WordPress plugin Samohyb GoodAccess scored 84% from 54 tests.

About plugin

  • Plugin page: samohyb-goodaccess
  • Plugin version: 1.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 6.3.1
  • First release: May 7, 2020
  • Latest release: Mar 11, 2021
  • Number of updates: 12
  • Update frequency: every 25.7 days
  • Top authors: Minor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 468 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.43ms] Passed 4 tests

An overview of server-side resources used by Samohyb GoodAccess
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.29 ▲1.03
Dashboard /wp-admin3.31 ▲0.0147.81 ▼2.20
Posts /wp-admin/edit.php3.36 ▲0.0149.82 ▼1.97
Add New Post /wp-admin/post-new.php5.89 ▲0.01104.51 ▲5.04
Media Library /wp-admin/upload.php3.23 ▲0.0136.53 ▲1.42
Samohyb GoodAccess /wp-admin/options-general.php?page=samohyb-goodaccess-options3.2031.09

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Samohyb GoodAccess
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.74 ▲0.151.81 ▲0.1644.22 ▼4.23
Dashboard /wp-admin2,207 ▲195.84 ▼0.0697.79 ▼5.9043.03 ▼0.14
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0538.84 ▼6.3735.41 ▼4.24
Add New Post /wp-admin/post-new.php1,517 ▼1117.65 ▼0.66594.56 ▼7.0850.25 ▼0.18
Media Library /wp-admin/upload.php1,392 ▲14.18 ▼0.0394.64 ▼3.5639.74 ▼3.59
Samohyb GoodAccess /wp-admin/options-general.php?page=samohyb-goodaccess-options8992.0425.5429.10

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% 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
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/samohyb-goodaccess/samohyb-goodaccess.php
    • > /wp-content/plugins/samohyb-goodaccess/uninstall.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: security, goodaccess, protection, access, good...

samohyb-goodaccess/samohyb-goodaccess.php Passed 13 tests

The primary PHP file in "Samohyb GoodAccess" version 1.0 is used by WordPress to initiate all plugin functionality
138 characters long description:
This plugin hides your WordPress administration side of the public internet but makes it accessible from any location with GoodAccess App.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin322 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25515258
CSS116064

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity16.50
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods853.33%
▷ Protected methods00.00%
▷ Private methods746.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
samohyb_logo_square.png77.51KB25.01KB▼ 67.73%