84% enviromon

Code Review | Enviromon

WordPress plugin Enviromon scored 84% from 54 tests.

About plugin

  • Plugin page: enviromon
  • Plugin version: 0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 20, 2018
  • Latest release: Jun 20, 2018
  • Number of updates: 2
  • Update frequency: every 5.5 days
  • Top authors: lambagency (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 525 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.29ms] Passed 4 tests

This is a short check of server-side resources used by Enviromon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.78 ▼2.72
Dashboard /wp-admin3.32 ▲0.0246.31 ▼6.30
Posts /wp-admin/edit.php3.37 ▲0.0147.53 ▼0.60
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.48 ▼6.57
Media Library /wp-admin/upload.php3.24 ▲0.0135.45 ▼1.55

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Enviromon
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲11514.47 ▲0.101.77 ▲0.0244.11 ▼8.16
Dashboard /wp-admin2,256 ▲685.10 ▲0.21111.29 ▼5.5039.76 ▼9.75
Posts /wp-admin/edit.php2,139 ▲502.06 ▲0.0444.39 ▲6.6334.45 ▼1.01
Add New Post /wp-admin/post-new.php1,630 ▲8822.45 ▼0.70589.51 ▼88.1934.05 ▼12.55
Media Library /wp-admin/upload.php1,441 ▲534.23 ▼0.0198.72 ▼10.7241.57 ▼7.10

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/enviromon/enviromon.php:127

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: environments, environment

enviromon/enviromon.php Passed 13 tests

This is the main PHP file of "Enviromon" version 0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
45 characters long description:
Select and showcase your current environment.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin610 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
Markdown11110485
PHP1218100
CSS131114
JavaScript11011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected