10% endora-lite

Code Review | Endora Lite

WordPress plugin Endora Lite scored10%from 54 tests.

About plugin

  • Plugin page: endora-lite
  • Plugin version: 15.03.2013
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Sep 28, 2012
  • Latest release: Mar 16, 2013
  • Number of updates: 3
  • Update frequency: every 58.0 days
  • Top authors: zeminem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,409 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.65 ▼42.97
Dashboard /wp-admin2.10 ▼1.205.71 ▼40.17
Posts /wp-admin/edit.php2.10 ▼1.265.41 ▼38.12
Add New Post /wp-admin/post-new.php2.10 ▼3.794.93 ▼87.05
Media Library /wp-admin/upload.php2.10 ▼1.137.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.10 ▼1.191.72 ▼0.9343.75 ▼4.85
Dashboard /wp-admin2,228 ▲546.01 ▲1.1099.32 ▼28.7294.73 ▲45.70
Posts /wp-admin/edit.php2,111 ▲221.99 ▼0.0634.18 ▼1.9029.50 ▼2.49
Add New Post /wp-admin/post-new.php1,536 ▲1723.22 ▼0.07777.12 ▲72.8354.25 ▼3.02
Media Library /wp-admin/upload.php1,398 ▲74.27 ▲0.0598.59 ▼10.2376.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

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 === )
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
PHP32634191
JavaScript2008

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 code0.32
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
img/hv.png2.80KB7.32KB0.00%
img/hs.png2.62KB7.54KB0.00%
img/endora.png0.42KB0.33KB▼ 22.01%