64% essential

Code Review | Essential

WordPress plugin Essential scored 64% from 54 tests.

About plugin

  • Plugin page: essential
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 5.8.1
  • First release: Nov 12, 2014
  • Latest release: Nov 21, 2014
  • Number of updates: 17
  • Update frequency: every 0.5 days
  • Top authors: bizsuppo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 927 total downloads

Benchmarks

Plugin footprint 65% 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.16MB] [CPU: ▼145.46ms] Passed 4 tests

An overview of server-side resources used by Essential
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.00 ▲0.2832.16 ▲10.28
Dashboard /wp-admin3.17 ▲0.1145.50 ▼0.48
Posts /wp-admin/edit.php3.22 ▲0.1146.11 ▼1.32
Add New Post /wp-admin/post-new.php5.76 ▲0.3374.97 ▼580.13
Media Library /wp-admin/upload.php3.13 ▲0.1331.66 ▲0.10
Sliders /wp-admin/admin.php?page=ess_slider3.0823.57
All Settings /wp-admin/admin.php?page=ess_settings3.0528.46

Server storage [IO: ▲2.01MB] [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: 83 new files
Database: 2 new tables, 1 new option
New tables
ess_slider_detail
ess_slider
New WordPress options
ess_db_version

Browser metrics Passed 4 tests

A check of browser resources used by Essential
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,830 ▲23416.26 ▲0.6413.19 ▲2.1845.57 ▲2.68
Dashboard /wp-admin2,993 ▲605.95 ▼0.05142.77 ▼6.62127.12 ▲17.39
Posts /wp-admin/edit.php2,773 ▲372.60 ▼0.1167.95 ▲0.9089.49 ▼5.36
Add New Post /wp-admin/post-new.php1,894 ▲22219.22 ▲0.25407.26 ▼8.91108.58 ▲3.47
Media Library /wp-admin/upload.php1,781 ▼265.02 ▼0.01134.70 ▼21.56140.59 ▲28.29
Sliders /wp-admin/admin.php?page=ess_slider1,1422.0955.0067.18
All Settings /wp-admin/admin.php?page=ess_settings1,0502.0651.1064.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie tables were found after uninstall: 2 tables
    • ess_slider
    • ess_slider_detail
  • Zombie WordPress options were found after uninstall: 1 option
    • ess_db_version

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/essential/menu.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/essential/view/slider/edit.php:2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/essential/db.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'multilangs_m' not found in wp-content/plugins/essential/controller/multilangs.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/essential/essential.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/essential/view/slider/list.php:2
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/essential/db.php on line 9
    • > PHP Notice
      Undefined index: ess_view in wp-content/plugins/essential/controller/multilangs.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/essential/view/multilangs/edit.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'slider_m' not found in wp-content/plugins/essential/controller/slider.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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
3 plugin tags: language, essential, slider

essential/essential.php Passed 13 tests

The entry point to "Essential" version 1.0.2 is a PHP file that has certain tags in its header comment area
84 characters long description:
Essential tools for your site (Slider, Portfolio, Blog, Multi languages, Shop, ...).

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Please make sure to remedy the following
  • Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
    • .bat - Batch File in Windows
      • wp-content/plugins/essential/view/js/slider/js/jssor.player.ytiframe.compress.bat
      • wp-content/plugins/essential/view/js/slider/js/jssor.slider.debug.min.compress.bat
      • wp-content/plugins/essential/view/js/slider/js/jssor.slider.min.compress.bat
      • wp-content/plugins/essential/view/js/slider/js/jssor.slider.mini.compress.bat
      • wp-content/plugins/essential/view/js/slider/js/jssor.sliderc.mini.compress.bat
      • wp-content/plugins/essential/view/js/slider/js/jssor.sliders.mini.compress.bat
14,096 lines of code in 70 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript121,4418564,978
HTML459923,207
CSS44321,778
Sass1323241,256
LESS1323331,247
PHP15145268703
SVG100520
DOS Batch68424257
JSON10084
Markdown155066

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity12.00
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity5.40
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions545.45%
▷ Anonymous functions654.55%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
front/slider/img/a17.png5.38KB3.32KB▼ 38.24%
view/img/icon.png0.46KB0.35KB▼ 24.00%