84% wp-remote-request-check

Code Review | WP Remote Request Check

WordPress plugin WP Remote Request Check scored84%from 54 tests.

About plugin

  • Plugin page: wp-remote-request...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: Apr 18, 2014
  • Latest release: Apr 18, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: danstever (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,258 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.39ms] Passed 4 tests

A check of server-side resources used by WP Remote Request Check
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.93 ▼5.06
Dashboard /wp-admin3.32 ▲0.0247.98 ▲2.25
Posts /wp-admin/edit.php3.37 ▲0.0246.25 ▲1.55
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.70 ▼5.96
Media Library /wp-admin/upload.php3.24 ▲0.0134.13 ▼0.07
Rmt Request Check /wp-admin/tools.php?page=wp-remote-request-check3.2130.15

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Remote Request Check
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.181.65 ▲0.0447.84 ▲1.74
Dashboard /wp-admin2,202 ▲255.59 ▲0.0184.64 ▼3.5143.15 ▼3.22
Posts /wp-admin/edit.php2,104 ▲12.02 ▲0.0036.85 ▼0.6934.19 ▼1.75
Add New Post /wp-admin/post-new.php1,529 ▲123.13 ▲0.17658.67 ▼6.1859.94 ▲3.15
Media Library /wp-admin/upload.php1,407 ▲104.23 ▲0.0695.02 ▼0.0241.56 ▼3.24
Rmt Request Check /wp-admin/tools.php?page=wp-remote-request-check7982.0225.2539.18

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-remote-request-check/wp-remote-request-check.php:87

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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: api, testing, network

wp-remote-request-check/wp-remote-request-check.php Passed 13 tests

The main file in "WP Remote Request Check" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
52 characters long description:
Checks if the WordPress HTTP API is able to be used.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected77 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18677

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.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
There were not PNG files found in your plugin