10% envite

Code Review | Envite

WordPress plugin Envite scored 10% from 54 tests.

About plugin

  • Plugin page: envite
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 5.9.2
  • First release: May 14, 2020
  • Latest release: Nov 17, 2020
  • Number of updates: 12
  • Update frequency: every 16.1 days
  • Top authors: envite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 342 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-includes/class-wp-hook.php+307
    Non-static method enviteActivated::plugin_activate() should not be called statically

Server metrics [RAM: ▼1.40MB] [CPU: ▼1,435.53ms] Passed 4 tests

This is a short check of server-side resources used by Envite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.02 ▼0.5017.40 ▼31.40
Dashboard /wp-admin2.94 ▼0.4714.24 ▼24.49
Posts /wp-admin/edit.php2.94 ▼0.7015.57 ▼20.80
Add New Post /wp-admin/post-new.php2.94 ▼3.9214.32 ▼5,665.42
Media Library /wp-admin/upload.php2.94 ▼0.3614.15 ▼14.27

Server storage [IO: ▲0.06MB] [DB: ▲0.05MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 1 new option
New WordPress options
eNvite

Browser metrics Passed 4 tests

Checking browser requirements for Envite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,182 ▲44020.90 ▲5.16130.81 ▲124.542.57 ▲0.59
Dashboard /wp-admin2,910 ▲496.27 ▲0.09121.45 ▼9.17155.06 ▼4.30
Posts /wp-admin/edit.php2,713 ▲223.25 ▲0.0162.82 ▼1.08142.47 ▼1.93
Add New Post /wp-admin/post-new.php1,679 ▲1816.02 ▼0.34385.17 ▼49.27157.04 ▲8.66
Media Library /wp-admin/upload.php1,723 ▲255.55 ▲0.09137.33 ▼0.87182.46 ▼9.46

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+307
    Non-static method enviteActivated::envite_init() should not be called statically
  • The uninstall procedure has failed, leaving 1 option in the database
    • eNvite

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

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
Attributes that require attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
Please take inspiration from this readme.txt

envite/envite-init.php 92% from 13 tests

The entry point to "Envite" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("envite.php" instead of "envite-init.php")

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
Success! There were no dangerous files found in this plugin793 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP49053393
CSS1547295
JavaScript2197105

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity5.00
▷ Minimum class complexity2.00
▷ Maximum class complexity8.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/circle1.png0.11KB0.09KB▼ 16.38%
img/circle.png1.46KB1.26KB▼ 13.66%