89% jobbnorge-block

Code Review | Jobbnorge Block

WordPress plugin Jobbnorge Block scored89%from 54 tests.

About plugin

  • Plugin page: jobbnorge-block
  • Plugin version: 2.1.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4
  • WordPress version: 6.3.1
  • First release: Jan 24, 2023
  • Latest release: Nov 30, 2023
  • Number of updates: 21
  • Update frequency: every 14.8 days
  • Top authors: PerS (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,217 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Jobbnorge Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.73 ▲0.71
Dashboard /wp-admin3.32 ▲0.0247.08 ▼3.37
Posts /wp-admin/edit.php3.38 ▲0.0248.65 ▼1.99
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.45 ▼13.20
Media Library /wp-admin/upload.php3.25 ▲0.0136.85 ▲4.74

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Jobbnorge Block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.29 ▲0.101.83 ▲0.3543.01 ▲6.82
Dashboard /wp-admin2,195 ▲175.61 ▼0.1094.14 ▼18.4141.03 ▼0.42
Posts /wp-admin/edit.php2,104 ▲41.96 ▲0.0240.12 ▼0.0241.14 ▲5.04
Add New Post /wp-admin/post-new.php6,369 ▲4,84327.54 ▲4.26857.79 ▲149.5435.84 ▼18.61
Media Library /wp-admin/upload.php1,400 ▼34.20 ▲0.0399.89 ▼0.2642.74 ▼1.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: block

jobbnorge-block/wp-jobb-norge.php 77% from 13 tests

This is the main PHP file of "Jobbnorge Block" version 2.1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("jobbnorge-block.php" instead of "wp-jobb-norge.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.4" instead of "7.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected22,828 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
JSON110021,900
PHP487228274
JavaScript41831208
PO File274116180
Markdown2790172
Sass221192
CSS2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin