78% wl-nordpool

Code Review | WL Nordpool

WordPress plugin WL Nordpool scored78%from 54 tests.

About plugin

  • Plugin page: wl-nordpool
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.8
  • WordPress version: 6.3.1
  • First release: Mar 17, 2020
  • Latest release: Aug 24, 2021
  • Number of updates: 49
  • Update frequency: every 10.8 days
  • Top authors: webloeft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /421 total downloads

Benchmarks

Plugin footprint 83% from 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.18MB] [CPU: ▼1.31ms] Passed 4 tests

Server-side resources used by WL Nordpool
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1850.27 ▲6.83
Dashboard /wp-admin3.48 ▲0.1849.62 ▲2.63
Posts /wp-admin/edit.php3.59 ▲0.2447.39 ▼1.59
Add New Post /wp-admin/post-new.php6.07 ▲0.1886.57 ▼8.02
Media Library /wp-admin/upload.php3.40 ▲0.1736.51 ▲1.76
WL Nordpool /wp-admin/options-general.php?page=wl_nordpool_options3.3730.78
All Items /wp-admin/edit.php?post_type=wl_embed3.4437.84
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=wl_embed3.4033.45
Add New /wp-admin/post-new.php?post_type=wl_embed3.43331.43

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
wl_nordpool_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WL Nordpool
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,950 ▲21513.77 ▼0.538.02 ▲6.0042.15 ▼7.56
Dashboard /wp-admin2,244 ▲565.96 ▲1.08112.02 ▲4.0744.80 ▼0.51
Posts /wp-admin/edit.php2,124 ▲382.07 ▲0.0533.92 ▼1.9634.44 ▲3.18
Add New Post /wp-admin/post-new.php1,549 ▲1623.03 ▼0.22635.94 ▼39.2950.24 ▼2.40
Media Library /wp-admin/upload.php1,426 ▲354.24 ▲0.0393.97 ▼8.6141.12 ▼2.58
WL Nordpool /wp-admin/options-general.php?page=wl_nordpool_options8322.0525.0326.57
All Items /wp-admin/edit.php?post_type=wl_embed1,0931.9531.2733.18
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=wl_embed1,3422.1325.5128.23
Add New /wp-admin/post-new.php?post_type=wl_embed1,8682.8756.9060.99

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wl_embed
    • > Warning in wp-content/plugins/wl-nordpool/Nordpool.class.php+202
    _() expects exactly 1 parameter, 2 given
    • > GET request to /wp-admin/post-new.php?post_type=wl_embed
    • > Warning in wp-content/plugins/wl-nordpool/Nordpool.class.php+263
    Illegal string offset 'video'
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wl_embed
    • > Notice in wp-content/plugins/wl-nordpool/Nordpool.class.php+263
    Uninitialized string offset: 0
    • > GET request to /wp-admin/post-new.php?post_type=wl_embed
    • > Warning in wp-content/plugins/wl-nordpool/Nordpool.class.php+263
    Illegal string offset 'audio'

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wl-nordpool/tags-helper.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: weblft, wl, nordpool

wl-nordpool/wl-nordpool.php 92% from 13 tests

The entry point to "WL Nordpool" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Git Repository: A Git repository was detected inside this plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,137 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP311465785
PO File1100113223
CSS22710127
JavaScript11102

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity130.00
▷ Minimum class complexity130.00
▷ Maximum class complexity130.00
Average method complexity4.07
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods43
▷ Static methods24.65%
▷ Public methods4297.67%
▷ Protected methods12.33%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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