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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.00 ▲0.28 | 32.16 ▲10.28 |
Dashboard /wp-admin | 3.17 ▲0.11 | 45.50 ▼0.48 |
Posts /wp-admin/edit.php | 3.22 ▲0.11 | 46.11 ▼1.32 |
Add New Post /wp-admin/post-new.php | 5.76 ▲0.33 | 74.97 ▼580.13 |
Media Library /wp-admin/upload.php | 3.13 ▲0.13 | 31.66 ▲0.10 |
Sliders /wp-admin/admin.php?page=ess_slider | 3.08 | 23.57 |
All Settings /wp-admin/admin.php?page=ess_settings | 3.05 | 28.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,830 ▲234 | 16.26 ▲0.64 | 13.19 ▲2.18 | 45.57 ▲2.68 |
Dashboard /wp-admin | 2,993 ▲60 | 5.95 ▼0.05 | 142.77 ▼6.62 | 127.12 ▲17.39 |
Posts /wp-admin/edit.php | 2,773 ▲37 | 2.60 ▼0.11 | 67.95 ▲0.90 | 89.49 ▼5.36 |
Add New Post /wp-admin/post-new.php | 1,894 ▲222 | 19.22 ▲0.25 | 407.26 ▼8.91 | 108.58 ▲3.47 |
Media Library /wp-admin/upload.php | 1,781 ▼26 | 5.02 ▼0.01 | 134.70 ▼21.56 | 140.59 ▲28.29 |
Sliders /wp-admin/admin.php?page=ess_slider | 1,142 | 2.09 | 55.00 | 67.18 |
All Settings /wp-admin/admin.php?page=ess_settings | 1,050 | 2.06 | 51.10 | 64.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
- > PHP Fatal error
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
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 1,441 | 856 | 4,978 |
HTML | 4 | 59 | 92 | 3,207 |
CSS | 4 | 4 | 32 | 1,778 |
Sass | 13 | 23 | 24 | 1,256 |
LESS | 13 | 23 | 33 | 1,247 |
PHP | 15 | 145 | 268 | 703 |
SVG | 1 | 0 | 0 | 520 |
DOS Batch | 6 | 84 | 24 | 257 |
JSON | 1 | 0 | 0 | 84 |
Markdown | 1 | 55 | 0 | 66 |
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 code | 0.29 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 5.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 5 | 45.45% |
▷ Anonymous functions | 6 | 54.55% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
front/slider/img/a17.png | 5.38KB | 3.32KB | ▼ 38.24% |
view/img/icon.png | 0.46KB | 0.35KB | ▼ 24.00% |