84% region-generation-by-fuel-type-widget

Code Review | Australian Live Generation By Fuel Type Widget

WordPress plugin Australian Live Generation By Fuel Type Widget scored84%from 54 tests.

About plugin

  • Plugin page: region-generation...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2015
  • Latest release: Jul 13, 2015
  • Number of updates: 9
  • Update frequency: every 0.4 days
  • Top authors: global-roam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,054 total downloads

Benchmarks

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.00MB] [CPU: ▼3.60ms] Passed 4 tests

Analyzing server-side resources used by Australian Live Generation By Fuel Type Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.62 ▼4.83
Dashboard /wp-admin3.31 ▲0.0045.52 ▼4.05
Posts /wp-admin/edit.php3.36 ▲0.0049.65 ▲3.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.25 ▼5.21
Media Library /wp-admin/upload.php3.23 ▲0.0037.50 ▼0.31

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Australian Live Generation By Fuel Type Widget: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.20 ▼1.391.93 ▲0.2041.93 ▼4.58
Dashboard /wp-admin2,209 ▲184.82 ▼1.2295.60 ▼12.9141.18 ▼3.83
Posts /wp-admin/edit.php2,092 ▼02.05 ▼0.0138.69 ▼1.2536.43 ▲2.77
Add New Post /wp-admin/post-new.php1,549 ▲3518.05 ▲0.54615.63 ▼102.0769.35 ▲8.62
Media Library /wp-admin/upload.php1,382 ▼64.30 ▲0.1396.12 ▼14.8545.90 ▼1.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/region-generation-by-fuel-type-widget/region-generation-by-fuel-type-widget.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (This is what it looks like) image missing
You can look at the official readme.txt

region-generation-by-fuel-type-widget/region-generation-by-fuel-type-widget.php Passed 13 tests

The entry point to "Australian Live Generation By Fuel Type Widget" version 1.1 is a PHP file that has certain tags in its header comment area
104 characters long description:
Use [region-generation-by-fuel-type-widget token='your-api-token'] to insert this widget into your page.

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
There were no executable files found in this plugin12 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151012

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin