77% janolaw-agb-hosting

Code Review | Janolaw AGB Hosting

WordPress plugin Janolaw AGB Hosting scored77%from 54 tests.

About plugin

  • Plugin page: janolaw-agb-hosting
  • Plugin version: 4.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 6, 2010
  • Latest release: Sep 7, 2023
  • Number of updates: 92
  • Update frequency: every 51.6 days
  • Top authors: Code-WorX (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /26,531 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.54ms] Passed 4 tests

Analyzing server-side resources used by Janolaw AGB Hosting
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.36 ▼5.89
Dashboard /wp-admin3.33 ▼0.0254.54 ▼13.53
Posts /wp-admin/edit.php3.38 ▲0.0249.61 ▼0.26
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.06 ▼14.46
Media Library /wp-admin/upload.php3.25 ▲0.0235.04 ▲0.20

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
janolaw_plugin_version

Browser metrics Passed 4 tests

An overview of browser requirements for Janolaw AGB Hosting
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.35 ▲0.191.58 ▼0.1243.28 ▼0.13
Dashboard /wp-admin2,196 ▲225.63 ▲0.1090.11 ▼14.0642.06 ▼3.97
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0338.00 ▲0.1736.20 ▲0.51
Add New Post /wp-admin/post-new.php1,531 ▲523.25 ▲0.18689.14 ▼7.5759.87 ▼0.97
Media Library /wp-admin/upload.php1,407 ▲74.17 ▼0.0395.40 ▼13.1443.62 ▼3.40
janolaw AGB Hosting /wp-admin/janolaw_agb.php260.420.0915.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • janolaw_plugin_version

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/janolaw-agb-hosting/janolaw_agb.php:33

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/janolaw_agb.php
    • > Network (severe)
    wp-admin/janolaw_agb.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Janolaw Settings)
  • Contributors: The plugin contributors field is missing
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
The official readme.txt is a good inspiration

janolaw-agb-hosting/janolaw_agb.php 92% from 13 tests

The main file in "Janolaw AGB Hosting" v. 4.4.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("janolaw-agb-hosting.php" instead of "janolaw_agb.php")

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
Everything looks great! No dangerous files found in this plugin653 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16845653

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.57MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png211.04KB59.78KB▼ 71.68%
images/ok.png0.56KB0.49KB▼ 12.11%
screenshot-1.png276.45KB78.00KB▼ 71.79%
screenshot-2.png81.56KB22.22KB▼ 72.76%
images/agb_hosting_service_t.png10.39KB4.57KB▼ 56.07%