94% access-code-feeder

Code Review | Access Code Feeder

WordPress plugin Access Code Feeder scored 94% from 54 tests.

About plugin

  • Plugin page: access-code-feeder
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-5.5
  • WordPress version: 5.9.2
  • First release: Mar 17, 2020
  • Latest release: Sep 9, 2020
  • Number of updates: 13
  • Update frequency: every 14.0 days
  • Top authors: trof (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 393 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼300.75ms] Passed 4 tests

Analyzing server-side resources used by Access Code Feeder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2156.34 ▲5.79
Dashboard /wp-admin3.56 ▲0.1535.01 ▲1.86
Posts /wp-admin/edit.php3.78 ▲0.1439.83 ▲4.64
Add New Post /wp-admin/post-new.php7.02 ▲0.0696.26 ▼1,205.57
Media Library /wp-admin/upload.php3.43 ▲0.1325.54 ▼3.92
Access Code Feeder /wp-admin/options-general.php?page=access-code-feeder3.4125.53

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 23 new files
Database: 1 new table, no new options
New tables

Browser metrics Passed 4 tests

Access Code Feeder: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,791 ▲3716.14 ▲0.536.28 ▲0.092.46 ▼0.44
Dashboard /wp-admin2,897 ▲366.15 ▼0.02114.59 ▼12.83159.85 ▼1.54
Posts /wp-admin/edit.php2,693 ▲53.24 ▲0.0061.41 ▲1.62137.03 ▼2.83
Add New Post /wp-admin/post-new.php1,683 ▼718.18 ▼3.03400.53 ▼3.75152.22 ▲1.40
Media Library /wp-admin/upload.php1,703 ▲55.50 ▲0.03139.63 ▲5.08186.35 ▼4.12
Access Code Feeder /wp-admin/options-general.php?page=access-code-feeder1,4463.0662.06169.22

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
  • 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-code-feeder/access-code-feeder.php:15

User-side errors Passed 1 test

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


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (**Feeders List** -), #2 (**Add new Feeder** - Entering Feeder Name.), #3 (**Load Access Codes** - No access codes yet.), #4 (**Access Codes Loaded** - Just for Testing.), #5 (**Usage** - Usage information.)
Please take inspiration from this readme.txt

access-code-feeder/access-code-feeder.php Passed 13 tests

The main PHP script in "Access Code Feeder" version 1.0.3 is automatically included on every request by WordPress
63 characters long description:
Feeds unique access codes to chat bots, merchant services, etc.

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

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity51.00
▷ Minimum class complexity51.00
▷ Maximum class complexity51.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
7 PNG files occupy 0.23MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png26.96KB15.21KB▼ 43.60%
screenshot-5.png46.24KB26.34KB▼ 43.03%
screenshot-2.png35.57KB20.36KB▼ 42.77%
images/icon1_1.png41.11KB13.66KB▼ 66.77%
images/icon1.png8.49KB8.30KB▼ 2.21%