84% lazy-invitation

Code Review | Slack Lazy Invitation

WordPress plugin Slack Lazy Invitation scored84%from 54 tests.

About plugin

  • Plugin page: lazy-invitation
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4
  • WordPress version: 6.3.1
  • First release: Jul 24, 2015
  • Latest release: Jan 26, 2016
  • Number of updates: 10
  • Update frequency: every 18.5 days
  • Top authors: juliobox (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

20+ active /2,852 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Slack Lazy Invitation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.62 ▼1.01
Dashboard /wp-admin3.32 ▲0.0144.16 ▼8.76
Posts /wp-admin/edit.php3.37 ▲0.0144.33 ▲0.63
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.95 ▼1.82
Media Library /wp-admin/upload.php3.24 ▲0.0133.96 ▲0.38
Slack Invit /wp-admin/options-general.php?page=slackinvit_settings3.2132.94

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Slack Lazy Invitation
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.16 ▼1.271.54 ▼0.4841.61 ▼4.49
Dashboard /wp-admin2,204 ▲195.82 ▼0.02105.12 ▼10.8440.25 ▼1.99
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0335.93 ▼1.7731.06 ▼2.11
Add New Post /wp-admin/post-new.php1,540 ▲2118.44 ▼4.78603.16 ▼71.2657.48 ▲5.91
Media Library /wp-admin/upload.php1,392 ▲74.21 ▼0.0694.27 ▼11.2844.56 ▼0.86
Slack Invit /wp-admin/options-general.php?page=slackinvit_settings8462.0523.2934.97

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lazy-invitation/lazy-invitation.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: You can look at the official readme.txt

lazy-invitation/lazy-invitation.php Passed 13 tests

The principal PHP file in "Slack Lazy Invitation" v. 1.4 is loaded by WordPress automatically on each request
70 characters long description:
Slack Lazy Invitation lets you auto invite anyone to your Slack Group.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin370 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11996259
PO File14172111

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin