79% all-in-one-invite-codes

Code Review | All in One Invite Codes

WordPress plugin All in One Invite Codes scored79%from 54 tests.

About plugin

  • Plugin page: all-in-one-invite...
  • Plugin version: 1.1.14
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 14, 2019
  • Latest release: Nov 17, 2023
  • Number of updates: 47
  • Update frequency: every 34.4 days
  • Top authors: svenl77 (87.23%)gfirem (14.89%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /9,715 total downloads

Benchmarks

Plugin footprint 65% 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: ▲4.31MB] [CPU: ▲28.85ms] Passed 4 tests

An overview of server-side resources used by All in One Invite Codes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /7.96 ▲4.5063.89 ▲25.19
Dashboard /wp-admin7.98 ▲4.6785.05 ▲37.44
Posts /wp-admin/edit.php7.98 ▲4.6276.57 ▲30.08
Add New Post /wp-admin/post-new.php9.34 ▲3.45126.08 ▲25.33
Media Library /wp-admin/upload.php7.98 ▲4.7570.47 ▲34.79
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius7.9861.85

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 229 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
fs_accounts
fs_active_plugins
fs_debug_mode

Browser metrics Passed 4 tests

Checking browser requirements for All in One Invite Codes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲5514.76 ▲0.551.74 ▼0.4331.97 ▼13.17
Dashboard /wp-admin2,244 ▲634.98 ▼0.6895.50 ▼8.8442.18 ▼3.68
Posts /wp-admin/edit.php2,156 ▲562.40 ▲0.3937.21 ▼3.0932.83 ▼5.40
Add New Post /wp-admin/post-new.php1,563 ▲3723.14 ▲0.26659.25 ▲19.6935.06 ▼16.70
Media Library /wp-admin/upload.php1,449 ▲494.53 ▲0.36102.96 ▲4.0545.34 ▼1.48
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,1072.0827.8329.32

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/all-in-one-invite-codes/includes/resources/freemius/includes/class-freemius.php+127
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 9 options in the database
    • db_upgraded
    • fs_debug_mode
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • fs_accounts
    • theysaidso_admin_options
    • fs_active_plugins

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Manage Invite Codes), #2 (Create new Invite Codes), #3 (General Settings), #4 (Mail Templates), #5 (List Codes on the Frontend), #6 (eMail Form)
Please take inspiration from this readme.txt

all-in-one-invite-codes/all-in-one-invite-codes.php 92% from 13 tests

"All in One Invite Codes" version 1.1.14'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: Please keep the plugin description shorter than 140 characters (currently 158 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected11,539 lines of code in 164 files:
LanguageFilesBlank linesComment linesLines of code
PHP1321,8189278,962
JavaScript123522782,064
PO File2102106319
CSS16260159
XML10019
JSON10016

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity85.83
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.55
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes52
▷ Abstract classes23.85%
▷ Concrete classes5096.15%
▷ Final classes00.00%
Methods1,296
▷ Static methods20615.90%
▷ Public methods89669.14%
▷ Protected methods171.31%
▷ Private methods38329.55%
Functions159
▷ Named functions159100.00%
▷ Anonymous functions00.00%
Constants150
▷ Global constants10368.67%
▷ Class constants4731.33%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/resources/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
includes/resources/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
assets/images/sort_desc.png0.15KB0.25KB0.00%
assets/images/sort_desc_disabled.png0.14KB0.25KB0.00%
assets/images/sort_asc_disabled.png0.14KB0.25KB0.00%