89% website-information

Code Review | Website Information

WordPress plugin Website Information scored89%from 54 tests.

About plugin

  • Plugin page: website-information
  • Plugin version: 0.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Feb 26, 2021
  • Latest release: Aug 9, 2023
  • Number of updates: 21
  • Update frequency: every 42.6 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /999 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.62ms] Passed 4 tests

Server-side resources used by Website Information
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.06 ▼9.12
Dashboard /wp-admin3.37 ▲0.0648.61 ▼3.02
Posts /wp-admin/edit.php3.42 ▲0.0648.39 ▼1.42
Add New Post /wp-admin/post-new.php5.97 ▲0.0895.40 ▼8.91
Media Library /wp-admin/upload.php3.29 ▲0.0637.98 ▲0.15

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Website Information
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.77 ▲0.391.68 ▼0.1440.02 ▼5.02
Dashboard /wp-admin2,214 ▲265.88 ▲0.07120.80 ▲13.5641.95 ▼0.22
Posts /wp-admin/edit.php2,103 ▲142.05 ▼0.0040.13 ▲1.8234.65 ▼3.59
Add New Post /wp-admin/post-new.php1,540 ▲723.38 ▲0.11655.64 ▼25.1863.10 ▲0.27
Media Library /wp-admin/upload.php1,405 ▲174.24 ▲0.03103.32 ▼0.4044.17 ▲1.22

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Invalid url: "buymeacoffee.com/josem"
You can take inspiration from this readme.txt

website-information/website-information.php 92% from 13 tests

The entry point to "Website Information" version 0.0.6 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin494 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4130384
PO File1303291
JavaScript10019

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity3.83
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods12100.00%
▷ Public methods12100.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 Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin