79% energ1zer

Code Review | Energ1zer

WordPress plugin Energ1zer scored79%from 54 tests.

About plugin

  • Plugin page: energ1zer
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 28, 2015
  • Latest release: Oct 21, 2023
  • Number of updates: 16
  • Update frequency: every 198.4 days
  • Top authors: frank.quebec (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /679 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼1.98ms] Passed 4 tests

Server-side resources used by Energ1zer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1434.47 ▼7.52
Dashboard /wp-admin3.48 ▲0.1848.74 ▲4.03
Posts /wp-admin/edit.php3.60 ▲0.2444.83 ▲0.77
Add New Post /wp-admin/post-new.php6.07 ▲0.1888.61 ▼5.21
Media Library /wp-admin/upload.php3.41 ▲0.1840.49 ▲8.93
Menu Text /wp-admin/options-general.php?page=energ1zer3.3831.26

Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Energ1zer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲13413.48 ▼0.8710.99 ▲9.3537.98 ▼3.40
Dashboard /wp-admin2,198 ▲275.54 ▼0.0481.88 ▼4.0536.82 ▼1.84
Posts /wp-admin/edit.php2,106 ▲92.03 ▲0.0532.94 ▼0.8934.38 ▼0.02
Add New Post /wp-admin/post-new.php6,341 ▲4,81525.94 ▲2.80899.61 ▲243.2461.79 ▲11.69
Media Library /wp-admin/upload.php1,409 ▲94.23 ▲0.07110.07 ▲13.7346.81 ▲5.00
Menu Text /wp-admin/options-general.php?page=energ1zer7912.0026.8926.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/energ1zer/public/views/public.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/energ1zer/admin/views/admin.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: shortcode rich text edit layout responsive design thumbnails rounded

energ1zer/energ1zer.php Passed 13 tests

The main PHP file in "Energ1zer" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
55 characters long description:
Bring life to your wordpress site with dynamic elements

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
Everything looks great! No dangerous files found in this plugin3,626 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript65339072,005
PHP71975181,176
CSS3507445

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity104.50
▷ Minimum class complexity22.00
▷ Maximum class complexity187.00
Average method complexity5.70
▷ Minimum method complexity1.00
▷ Maximum method complexity81.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods46
▷ Static methods817.39%
▷ Public methods4189.13%
▷ Protected methods00.00%
▷ Private methods510.87%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.47MB with 0.30MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png11.50KB5.06KB▼ 56.00%
assets/banner-1544x500.png23.10KB9.63KB▼ 58.33%
assets/screenshot-1.png450.52KB105.76KB▼ 76.52%