84% request-io

Code Review | Request.io

WordPress plugin Request.io scored84%from 54 tests.

About plugin

  • Plugin page: request-io
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-5.6
  • WordPress version: 6.3.1
  • First release: Mar 18, 2021
  • Latest release: Mar 28, 2021
  • Number of updates: 12
  • Update frequency: every 0.9 days
  • Top authors: homanp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /412 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.62MB] [CPU: ▼16.76ms] Passed 4 tests

Analyzing server-side resources used by Request.io
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.40 ▼5.98
Dashboard /wp-admin3.36 ▲0.0649.70 ▲1.57
Posts /wp-admin/edit.php3.41 ▲0.0652.62 ▼3.01
Add New Post /wp-admin/post-new.php3.24 ▼2.6539.04 ▼59.60
Media Library /wp-admin/upload.php3.28 ▲0.0649.97 ▲12.11

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Request.io: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.45 ▼0.091.88 ▼0.1342.93 ▲0.92
Dashboard /wp-admin2,225 ▲374.87 ▼0.00102.30 ▼3.2640.39 ▼5.99
Posts /wp-admin/edit.php2,108 ▲192.05 ▲0.0639.04 ▼0.3034.66 ▼3.33
Add New Post /wp-admin/post-new.php1,551 ▲3223.26 ▲0.24674.43 ▲7.9954.88 ▼10.26
Media Library /wp-admin/upload.php1,398 ▲104.21 ▼0.20100.27 ▼6.6043.73 ▼2.85

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
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/request-io/request-io.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: "N/A"
You can look at the official readme.txt

request-io/request-io.php Passed 13 tests

Analyzing the main PHP file in "Request.io" version 1.0
73 characters long description:
This plugin helps you configure your WordPress website to use Request.io.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin265 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14314265

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin