94% adenergizer

Code Review | Adenergizer

WordPress plugin Adenergizer scored 94% 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: 5.9.2
  • 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 / 986 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼309.09ms] Passed 4 tests

A check of server-side resources used by Adenergizer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0352.93 ▲4.63
Dashboard /wp-admin3.46 ▲0.0533.18 ▼0.30
Posts /wp-admin/edit.php3.69 ▲0.0537.23 ▼0.32
Add New Post /wp-admin/post-new.php6.92 ▼0.0593.57 ▼1,234.71
Media Library /wp-admin/upload.php3.34 ▲0.0422.99 ▼1.04

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Adenergizer: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲2916.18 ▲0.536.43 ▲0.492.45 ▼0.45
Dashboard /wp-admin2,908 ▲546.16 ▲0.05118.03 ▼22.05157.14 ▼7.05
Posts /wp-admin/edit.php2,711 ▲233.24 ▲0.0164.18 ▼0.96138.21 ▼3.37
Add New Post /wp-admin/post-new.php1,681 ▲2018.41 ▲2.00386.18 ▼30.20156.33 ▲1.79
Media Library /wp-admin/upload.php1,718 ▲175.56 ▲0.01140.38 ▼20.09190.24 ▲2.18

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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 just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: robotstxt, adstxt, seo, google, search engine

adenergizer/adenergizer.php 85% from 13 tests

The primary PHP file in "Adenergizer" version 0.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected201 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP435107201

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
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
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods1684.21%
▷ Public methods19100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected