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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.02 ▼0.50 | 17.40 ▼31.40 |
Dashboard /wp-admin | 2.94 ▼0.47 | 14.24 ▼24.49 |
Posts /wp-admin/edit.php | 2.94 ▼0.70 | 15.57 ▼20.80 |
Add New Post /wp-admin/post-new.php | 2.94 ▼3.92 | 14.32 ▼5,665.42 |
Media Library /wp-admin/upload.php | 2.94 ▼0.36 | 14.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,182 ▲440 | 20.90 ▲5.16 | 130.81 ▲124.54 | 2.57 ▲0.59 |
Dashboard /wp-admin | 2,910 ▲49 | 6.27 ▲0.09 | 121.45 ▼9.17 | 155.06 ▼4.30 |
Posts /wp-admin/edit.php | 2,713 ▲22 | 3.25 ▲0.01 | 62.82 ▼1.08 | 142.47 ▼1.93 |
Add New Post /wp-admin/post-new.php | 1,679 ▲18 | 16.02 ▼0.34 | 385.17 ▼49.27 | 157.04 ▲8.66 |
Media Library /wp-admin/upload.php | 1,723 ▲25 | 5.55 ▲0.09 | 137.33 ▼0.87 | 182.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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 90 | 53 | 393 |
CSS | 1 | 54 | 7 | 295 |
JavaScript | 2 | 19 | 7 | 105 |
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 code | 0.17 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/circle1.png | 0.11KB | 0.09KB | ▼ 16.38% |
img/circle.png | 1.46KB | 1.26KB | ▼ 13.66% |