84% webchecker

Code Review | Webchecker

WordPress plugin Webchecker scored84%from 54 tests.

About plugin

  • Plugin page: webchecker
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-4.8
  • WordPress version: 6.3.1
  • First release: Apr 27, 2020
  • Latest release: Apr 27, 2020
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: mih75 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /335 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.42ms] Passed 4 tests

Analyzing server-side resources used by Webchecker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.74 ▼4.51
Dashboard /wp-admin3.31 ▲0.0146.86 ▼1.37
Posts /wp-admin/edit.php3.36 ▲0.0048.36 ▲3.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.32 ▼12.07
Media Library /wp-admin/upload.php3.23 ▲0.0034.34 ▼3.72

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Webchecker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.73 ▲0.371.70 ▼0.1138.18 ▼6.32
Dashboard /wp-admin2,225 ▲375.86 ▲0.9895.94 ▼8.9839.87 ▼3.64
Posts /wp-admin/edit.php2,108 ▲192.00 ▼0.0138.96 ▼1.4836.62 ▲0.20
Add New Post /wp-admin/post-new.php1,551 ▲923.03 ▲4.76680.29 ▲27.2454.32 ▲4.14
Media Library /wp-admin/upload.php1,404 ▲164.16 ▼0.0597.81 ▼1.6840.09 ▼3.72

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

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
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/webchecker/Webchecker.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: website, accesstimes, monitoring

webchecker/Webchecker.php 85% from 13 tests

The principal PHP file in "Webchecker" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("webchecker.php" instead of "Webchecker.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "5.0")

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 detected56 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1281656

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin