74% leadeo-lite

Code Review | Leadeo Lite

WordPress plugin Leadeo Lite scored74%from 54 tests.

About plugin

  • Plugin page: leadeo-lite
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.3
  • WordPress version: 6.3.1
  • First release: Nov 6, 2015
  • Latest release: Nov 10, 2015
  • Number of updates: 29
  • Update frequency: every 0.2 days
  • Top authors: ShindiriStudio (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,341 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.12ms] Passed 4 tests

A check of server-side resources used by Leadeo Lite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.00 ▼0.87
Dashboard /wp-admin3.33 ▼0.0142.55 ▼14.64
Posts /wp-admin/edit.php3.39 ▲0.0344.32 ▼2.20
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.77 ▼5.27
Media Library /wp-admin/upload.php3.26 ▲0.0337.15 ▼2.36
Add new /wp-admin/admin.php?page=leadeo-lite_edit5.2739.92
Leadeo /wp-admin/admin.php?page=leadeo-lite3.3836.80

Server storage [IO: ▲1.13MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 78 new files
Database: 3 new tables, 6 new options
New tables
wp_leadeo_lite_temp
wp_leadeo_lite
wp_leadeo_lite_data
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Leadeo Lite: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.21 ▼0.081.72 ▼0.0244.51 ▲1.65
Dashboard /wp-admin2,222 ▲425.62 ▼0.0785.34 ▼3.9138.95 ▼0.93
Posts /wp-admin/edit.php2,127 ▲271.99 ▼0.0135.23 ▲0.9332.15 ▼4.11
Add New Post /wp-admin/post-new.php1,548 ▲2223.18 ▲0.08664.07 ▲14.0057.09 ▲5.32
Media Library /wp-admin/upload.php1,427 ▲274.22 ▲0.05110.29 ▲3.7149.03 ▲2.81
Add new /wp-admin/admin.php?page=leadeo-lite_edit4,2823.5246.5779.16
Leadeo /wp-admin/admin.php?page=leadeo-lite1,1223.4444.8832.93

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie tables detected upon uninstall: 3 tables
    • wp_leadeo_lite
    • wp_leadeo_lite_temp
    • wp_leadeo_lite_data
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: name in wp-content/plugins/leadeo-lite/backend_browse.php on line 3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/leadeo-lite/backend_edit.php:25
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/leadeo-lite/backend_index.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/leadeo-lite/leadeo.php:390
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/leadeo-lite/backend_browse.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: lead generation, video, video player, email list, marketing...

leadeo-lite/leadeo.php 92% from 13 tests

The main PHP file in "Leadeo Lite" ver. 1.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("leadeo-lite.php" instead of "leadeo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin7,300 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
PHP255462,3852,869
CSS73721432,679
JavaScript122334231,368
HTML6248384

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity4.26
▷ Minimum class complexity1.00
▷ Maximum class complexity102.00
Average method complexity2.51
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes116
▷ Abstract classes00.00%
▷ Concrete classes116100.00%
▷ Final classes00.00%
Methods251
▷ Static methods00.00%
▷ Public methods251100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
21 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/pro.png3.70KB0.47KB▼ 87.33%
css/images/slider-control.png1.65KB0.75KB▼ 54.62%
css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png0.15KB0.14KB▼ 6.04%
css/images/zoomIn.png6.09KB2.07KB▼ 66.05%
css/images/glass.png2.73KB0.09KB▼ 96.60%