74% easy-error-reporting

Code Review | Easy Error Reporting

WordPress plugin Easy Error Reporting scored74%from 54 tests.

About plugin

  • Plugin page: easy-error-reporting
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.2
  • WordPress version: 6.3.1
  • First release: Apr 15, 2015
  • Latest release: Mar 21, 2018
  • Number of updates: 8
  • Update frequency: every 134.0 days
  • Top authors: manojroka (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active /1,602 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼1.24MB] [CPU: ▼42.67ms] Passed 4 tests

Analyzing server-side resources used by Easy Error Reporting
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.73 ▼0.7314.53 ▼25.74
Dashboard /wp-admin2.77 ▼0.5414.14 ▼33.60
Posts /wp-admin/edit.php2.77 ▼0.5915.76 ▼36.19
Add New Post /wp-admin/post-new.php2.77 ▼3.1215.61 ▼75.16
Media Library /wp-admin/upload.php2.77 ▼0.4614.90 ▼16.63

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 11 new options
New WordPress options
see_author
see_administrator
widget_recent-posts
see_contributor
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
see_subscriber
...

Browser metrics Passed 4 tests

Checking browser requirements for Easy Error Reporting
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7613.26 ▼1.371.68 ▼0.2238.21 ▼7.94
Dashboard /wp-admin2,220 ▲315.80 ▲0.8497.55 ▼22.7170.17 ▲26.95
Posts /wp-admin/edit.php2,103 ▲141.98 ▼0.0738.69 ▼3.4735.51 ▼1.09
Add New Post /wp-admin/post-new.php1,678 ▲14522.46 ▼0.86682.54 ▲19.2348.58 ▼12.55
Media Library /wp-admin/upload.php1,399 ▲174.14 ▼0.0793.88 ▼6.0569.25 ▲25.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5453
    Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • see_subscriber
    • see_contributor
    • theysaidso_admin_options
    • widget_recent-comments
    • see_editor
    • can_compress_scripts
    • see_administrator
    • widget_theysaidso_widget
    • see_author
    • db_upgraded
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/easy-error-reporting/easy-error-reporting.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 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: comments, debug, spam

easy-error-reporting/easy-error-reporting.php Passed 13 tests

"Easy Error Reporting" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
54 characters long description:
Sets the error reporting level according to user role.

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
No dangerous file extensions were detected83 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1162583

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
(invalid) images/icon.png0.71KB0.00KB▼ 100.00%