84% adenergizer

Code Review | Adenergizer

WordPress plugin Adenergizer scored84%from 54 tests.

About plugin

  • Plugin page: adenergizer
  • Plugin version: 0.0.2
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.1
  • WordPress version: 6.3.1
  • First release: Mar 15, 2019
  • Latest release: Mar 15, 2019
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: adenergizer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,429 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.07ms] Passed 4 tests

Analyzing server-side resources used by Adenergizer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.79 ▼0.21
Dashboard /wp-admin3.35 ▲0.0051.07 ▼11.51
Posts /wp-admin/edit.php3.46 ▲0.1148.26 ▼0.41
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.18 ▼4.13
Media Library /wp-admin/upload.php3.27 ▲0.0435.36 ▲2.46

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Adenergizer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲4414.35 ▼0.281.95 ▲0.0443.65 ▲2.37
Dashboard /wp-admin2,214 ▲345.58 ▼0.0590.44 ▼4.9244.18 ▲5.24
Posts /wp-admin/edit.php2,116 ▲132.02 ▲0.0734.20 ▼5.8232.84 ▼2.61
Add New Post /wp-admin/post-new.php1,539 ▲1123.18 ▼0.05665.42 ▲1.0057.61 ▲10.71
Media Library /wp-admin/upload.php1,416 ▲194.19 ▼0.0196.16 ▼5.4840.89 ▼19.15

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/adenergizer/templates/options-page.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 93% 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
5 plugin tags: google, search engine, robotstxt, seo, adstxt

adenergizer/adenergizer.php 85% from 13 tests

"Adenergizer" version 0.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin201 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity14.00
▷ Minimum class complexity11.00
▷ Maximum class complexity17.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods1684.21%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin