74% wperrorfixer

Code Review | WPerrorFixer

WordPress plugin WPerrorFixer scored74%from 54 tests.

About plugin

  • Plugin page: wperrorfixer
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.8
  • WordPress version: 6.3.1
  • First release: May 31, 2017
  • Latest release: Nov 7, 2018
  • Number of updates: 56
  • Update frequency: every 9.4 days
  • Top authors: wperrorfixer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /801 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼1.05MB] [CPU: ▼39.22ms] Passed 4 tests

An overview of server-side resources used by WPerrorFixer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.92 ▼0.5415.17 ▼23.83
Dashboard /wp-admin2.97 ▼0.3420.04 ▼28.75
Posts /wp-admin/edit.php2.97 ▼0.3918.20 ▼31.64
Add New Post /wp-admin/post-new.php2.97 ▼2.9219.92 ▼72.66
Media Library /wp-admin/upload.php2.97 ▼0.2618.09 ▼13.59
Plugin Information /wp-admin/options-general.php?page=wperrorfixer_settings2.9718.07

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WPerrorFixer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲18113.76 ▼0.577.47 ▲5.5639.72 ▼6.49
Dashboard /wp-admin2,214 ▲294.85 ▼1.03100.97 ▼2.1137.00 ▼0.69
Posts /wp-admin/edit.php2,094 ▲52.03 ▼0.0336.35 ▼5.6431.84 ▼5.42
Add New Post /wp-admin/post-new.php1,531 ▼318.07 ▼5.29640.23 ▼9.3652.48 ▼6.29
Media Library /wp-admin/upload.php1,396 ▲84.18 ▼0.0698.92 ▼8.1940.50 ▼3.33
Plugin Information /wp-admin/options-general.php?page=wperrorfixer_settings7021.7821.1822.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/wperrorfixer/includes/class-wperrorfixer-settings.php+313
    Undefined variable: settings
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • wperrorfixer_version
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% 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)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=wperrorfixer_settings
    • > Notice in wp-content/plugins/wperrorfixer/includes/class-wperrorfixer-settings.php+313
    Undefined variable: settings
    • > GET request to /wp-admin/options-general.php?page=wperrorfixer_settings
    • > Notice in wp-content/plugins/wperrorfixer/includes/class-wperrorfixer-settings.php+397
    Undefined variable: html
    • > GET request to /wp-admin/options-general.php?page=wperrorfixer_settings
    • > Notice in wp-content/plugins/wperrorfixer/includes/class-wperrorfixer-settings.php+398
    Undefined index: _wpnonce

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

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
1 plugin tags: wperrorfixer

wperrorfixer/wperrorfixer.php 92% from 13 tests

This is the main PHP file of "WPerrorFixer" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("3.9" instead of "4.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 detected987 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP8241563832
JavaScript52515132
JSON10014
Bourne Shell1619

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity25.00
▷ Minimum class complexity5.00
▷ Maximum class complexity61.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods39
▷ Static methods25.13%
▷ Public methods3794.87%
▷ Protected methods00.00%
▷ Private methods25.13%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png34.50KB11.57KB▼ 66.47%