78% wpessential

Code Review | WPEssential

WordPress plugin WPEssential scored78%from 54 tests.

About plugin

  • Plugin page: wpessential
  • Plugin version: 1.0.0.00009
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.7
  • WordPress version: 6.3.1
  • First release: Oct 29, 2020
  • Latest release: Jul 2, 2021
  • Number of updates: 14
  • Update frequency: every 17.6 days
  • Top authors: wpessential (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /859 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.65MB] [CPU: ▼2.60ms] Passed 4 tests

A check of server-side resources used by WPEssential
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.14 ▲0.6746.54 ▲9.44
Dashboard /wp-admin3.95 ▲0.6453.80 ▲9.45
Posts /wp-admin/edit.php4.06 ▲0.7053.07 ▲5.60
Add New Post /wp-admin/post-new.php6.55 ▲0.6686.56 ▼25.41
Media Library /wp-admin/upload.php3.87 ▲0.6442.23 ▼0.01

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 377 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

WPEssential: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲15013.96 ▼0.308.81 ▲7.1845.76 ▲3.65
Dashboard /wp-admin2,206 ▲185.86 ▼0.15110.44 ▲11.9141.52 ▼3.43
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0234.67 ▼6.8930.93 ▼4.97
Add New Post /wp-admin/post-new.php1,533 ▲323.35 ▲5.18621.45 ▲14.7150.56 ▼14.53
Media Library /wp-admin/upload.php1,391 ▲64.22 ▼0.0398.28 ▼0.9842.50 ▲1.42

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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 items
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wpessential/templates/general/after-sidebar.php
    • > /wp-content/plugins/wpessential/templates/header/branding/login.php
    • > /wp-content/plugins/wpessential/templates/header/branding/cart.php
  • 133× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WPEssential\\Plugins\\Fields\\Field' not found in wp-content/plugins/wpessential/inc/Fields/Date.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WPEssential\\Plugins\\Fields\\Field' not found in wp-content/plugins/wpessential/inc/Fields/TextShadow.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Group_Control_Base' not found in wp-content/plugins/wpessential/inc/Builders/Elementor/Controls/Group/Posts.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WPEssential\\Plugins\\Builders\\Elementor\\Shortcodes\\WooCommerce\\WCCategory' not found in wp-content/plugins/wpessential/inc/Builders/Elementor/Shortcodes/WooCommerce/ProductSingle.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wpessential/config/options/site-identity-tab.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wpessential/inc/Builders/Elementor/Utility/Base.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WPEssential\\Plugins\\Builders\\Elementor\\Shortcodes\\Forms\\FormCategory' not found in wp-content/plugins/wpessential/inc/Builders/Elementor/Shortcodes/Forms/WPForm.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WPEssential\\Plugins\\Builders\\Elementor\\Utility\\Base' not found in wp-content/plugins/wpessential/inc/Builders/Elementor/Shortcodes/BlogPost/Post.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WPEssential\\Plugins\\Fields\\Field' not found in wp-content/plugins/wpessential/inc/Fields/Heading.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WPEssential\\Plugins\\Fields\\Field' not found in wp-content/plugins/wpessential/inc/Fields/Media.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 need to be fixed:
  • Tags: Please delete some tags, you are using 25 tag instead of maximum 10
The official readme.txt might help

wpessential/wpessential.php 92% from 13 tests

The main file in "WPEssential" v. 1.0.0.00009 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 238 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin106,188 lines of code in 314 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript355,3035,53548,575
CSS347,6209230,707
PHP2192,6257,22512,280
SVG41129,039
PO File171,4491,9934,842
JSON500745

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity6.75
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces29
Interfaces9
Traits17
Classes136
▷ Abstract classes96.62%
▷ Concrete classes12793.38%
▷ Final classes3527.56%
Methods800
▷ Static methods22728.38%
▷ Public methods71689.50%
▷ Protected methods718.88%
▷ Private methods131.62%
Functions172
▷ Named functions13075.58%
▷ Anonymous functions4224.42%
Constants12
▷ Global constants866.67%
▷ Class constants433.33%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/three-quarters-4.png2.13KB3.23KB0.00%
assets/images/three-quarters-2.png2.64KB4.89KB0.00%
assets/images/three-quarters-1.png2.28KB3.12KB0.00%
assets/images/2cl.png2.91KB0.24KB▼ 91.79%
assets/images/three-quarters-3.png25.49KB13.54KB▼ 46.88%