Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/endora-lite/endora.php+15
Use of undefined constant ENDORA_WIDGET_ID1 - assumed 'ENDORA_WIDGET_ID1' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.91MB] [CPU: ▼52.08ms] Passed 4 tests
Analyzing server-side resources used by Endora Lite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.65 ▼42.97 |
Dashboard /wp-admin | 2.10 ▼1.20 | 5.71 ▼40.17 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.41 ▼38.12 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 4.93 ▼87.05 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 7.17 ▼27.52 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Endora Lite
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.10 ▼1.19 | 1.72 ▼0.93 | 43.75 ▼4.85 |
Dashboard /wp-admin | 2,228 ▲54 | 6.01 ▲1.10 | 99.32 ▼28.72 | 94.73 ▲45.70 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 1.99 ▼0.06 | 34.18 ▼1.90 | 29.50 ▼2.49 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.22 ▼0.07 | 777.12 ▲72.83 | 54.25 ▼3.02 |
Media Library /wp-admin/upload.php | 1,398 ▲7 | 4.27 ▲0.05 | 98.59 ▼10.23 | 76.63 ▲25.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/endora-lite/endora.php+15
Use of undefined constant ENDORA_WIDGET_ID1 - assumed 'ENDORA_WIDGET_ID1' (this will throw an Error in a future version of PHP)
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/endora-lite/css/rklm-wplugin-style.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/endora-lite/endora.php:18
- > PHP Warning
Use of undefined constant ENDORA_WIDGET_ID1 - assumed 'ENDORA_WIDGET_ID1' (this will throw an Error in a future version of PHP) in wp-content/plugins/endora-lite/endora.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function is_active_widget() in wp-content/plugins/endora-lite/pages/endora_settings_page1.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== endora-lite ===
)
endora-lite/endora.php 92% from 13 tests
The main PHP file in "Endora Lite" ver. 15.03.2013 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("endora-lite.php" instead of "endora.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected199 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 26 | 34 | 191 |
JavaScript | 2 | 0 | 0 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/hv.png | 2.80KB | 7.32KB | 0.00% |
img/hs.png | 2.62KB | 7.54KB | 0.00% |
img/endora.png | 0.42KB | 0.33KB | ▼ 22.01% |