84% ensighten

Code Review | Ensighten

WordPress plugin Ensighten scored84%from 54 tests.

About plugin

  • Plugin page: ensighten
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.7
  • WordPress version: 6.3.1
  • First release: Oct 28, 2016
  • Latest release: Nov 1, 2016
  • Number of updates: 10
  • Update frequency: every 4.0 days
  • Top authors: ensighten (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,136 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
Install script ran successfully

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

Server-side resources used by Ensighten
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.34 ▼5.31
Dashboard /wp-admin3.32 ▲0.0250.31 ▲3.80
Posts /wp-admin/edit.php3.37 ▲0.0144.36 ▼4.59
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.82 ▼15.00
Media Library /wp-admin/upload.php3.24 ▲0.0133.59 ▲1.63
Ensighten Settings /wp-admin/options-general.php?page=ensighten3.2732.09

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Ensighten
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.24 ▼1.141.65 ▲0.0339.37 ▼5.46
Dashboard /wp-admin2,213 ▲224.85 ▼0.2194.72 ▼7.4741.36 ▲1.83
Posts /wp-admin/edit.php2,090 ▲12.00 ▼0.0532.72 ▼12.7834.41 ▼9.90
Add New Post /wp-admin/post-new.php1,532 ▲1118.43 ▼4.98619.36 ▲14.4255.28 ▼7.29
Media Library /wp-admin/upload.php1,392 ▲44.25 ▲0.0993.06 ▼4.4641.53 ▼2.47
Ensighten Settings /wp-admin/options-general.php?page=ensighten8832.0324.2527.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please take a closer look at the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ensighten/ensighten-options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ensighten/ensighten.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ensighten/ensighten-bootstrap.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ensighten/ensighten-admin.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === ensighten === )
You can look at the official readme.txt

ensighten/ensighten.php Passed 13 tests

Analyzing the main PHP file in "Ensighten" version 1.0.1
71 characters long description:
Includes the Ensighten Bootstrap file and data layer onto your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin321 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP53742295
CSS13026

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected