83% website-information-report

Code Review | Website information Report

WordPress plugin Website information Report scored83%from 54 tests.

About plugin

  • Plugin page: website-informati...
  • Plugin version: 1.3
  • PHP compatiblity: 7.2.29+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9
  • WordPress version: 6.3.1
  • First release: Mar 29, 2022
  • Latest release: Sep 27, 2022
  • Number of updates: 16
  • Update frequency: every 11.4 days
  • Top authors: roshan28 (93.75%)roshanrathod0137 (12.5%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,524 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.71ms] Passed 4 tests

Analyzing server-side resources used by Website information Report
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0436.93 ▼6.33
Dashboard /wp-admin3.35 ▲0.0449.68 ▼2.40
Posts /wp-admin/edit.php3.40 ▲0.0449.30 ▼2.61
Add New Post /wp-admin/post-new.php5.93 ▲0.0494.88 ▼3.48
Media Library /wp-admin/upload.php3.27 ▲0.0438.98 ▲2.76

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Website information Report
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲7514.34 ▼0.011.68 ▼0.3044.58 ▲1.08
Dashboard /wp-admin2,214 ▲345.62 ▼0.02102.63 ▲3.5940.34 ▼3.68
Posts /wp-admin/edit.php2,125 ▲252.04 ▲0.0859.41 ▲22.2238.31 ▲2.29
Add New Post /wp-admin/post-new.php1,556 ▲2718.33 ▼4.90660.06 ▼39.8661.63 ▲6.35
Media Library /wp-admin/upload.php1,419 ▲194.25 ▲0.04118.41 ▲15.2846.15 ▲0.43

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/website-information-report/Website-information-Report.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please a description for screenshot #1 in website-information-report/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
The official readme.txt is a good inspiration

website-information-report/Website-information-Report.php 85% from 13 tests

The main PHP script in "Website information Report" version 1.3 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 182 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("website-information-report.php" instead of "Website-information-Report.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected237 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1910192
CSS19045

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
image/yellow.png0.85KB0.87KB0.00%
image/red.png0.64KB0.58KB▼ 8.91%
image/online.png1.84KB1.01KB▼ 45.09%