88% wp-envybox

Code Review | WP EnvyBox

WordPress plugin WP EnvyBox scored 88% from 53 tests.

About plugin

  • Plugin page: wp-envybox
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.4
  • WordPress version: 5.8.1
  • First release: Feb 18, 2020
  • Latest release: Mar 10, 2020
  • Number of updates: 3
  • Update frequency: every 7.3 days
  • Top authors: promoz73 (100%)

Code review

53 tests

User reviews

1 review

Install metrics

100+ active / 416 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼278.39ms] Passed 4 tests

A check of server-side resources used by WP EnvyBox
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1530.01 ▲6.99
Dashboard /wp-admin3.10 ▲0.0543.15 ▲4.69
Posts /wp-admin/edit.php3.15 ▲0.0541.72 ▼4.21
Add New Post /wp-admin/post-new.php5.46 ▲0.0386.96 ▼1,108.07
Media Library /wp-admin/upload.php3.04 ▲0.0432.83 ▼5.98

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP EnvyBox
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,707 ▲10115.90 ▲0.348.07 ▼0.1146.54 ▲1.00
Dashboard /wp-admin2,964 ▲1115.91 ▲0.10133.67 ▼0.05105.65 ▼0.06
Posts /wp-admin/edit.php2,711 ▲82.69 ▲0.0166.15 ▼0.6095.17 ▲3.12
Add New Post /wp-admin/post-new.php1,854 ▲20117.72 ▼0.98346.35 ▼13.56107.94 ▲3.82
Media Library /wp-admin/upload.php1,777 ▲85.02 ▲0.01137.30 ▼21.57101.87 ▼17.46
WP EnvyBox /wp-admin/wp-envybox.php260.900.0510.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 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/wp-envybox/admin/admin-page.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/wp-envybox.php
    • > Network (severe)
    wp-admin/wp-envybox.php - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (screenshot-1.png) image required
You can take inspiration from this readme.txt

wp-envybox/wp-envybox.php Passed 13 tests

The principal PHP file in "WP EnvyBox" v. 1.0 is loaded by WordPress automatically on each request
72 characters long description:
Services for the site, allowing you to increase the conversion to leads.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected243 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File1111142

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 1 test

Image compression 0% from 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.65MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/item6.png38.86KB15.45KB▼ 60.25%
assets/images/item5.png47.32KB15.80KB▼ 66.60%
assets/images/item3.png98.66KB27.30KB▼ 72.33%
assets/images/item4.png40.21KB12.58KB▼ 68.71%
screenshot-1.png284.37KB98.84KB▼ 65.24%