94% fetchurl

Code Review | Fetch URL - Fetch and Parse External Content

WordPress plugin Fetch URL - Fetch and Parse External Content scored 94% from 54 tests.

About plugin

  • Plugin page: fetchurl
  • Plugin version: 3.04.26
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.7.1
  • WordPress version: 5.8.1
  • First release: Dec 7, 2013
  • Latest release: Dec 30, 2013
  • Number of updates: 8
  • Update frequency: every 2.9 days
  • Top authors: povidiu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,435 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼138.51ms] Passed 4 tests

Server-side resources used by Fetch URL - Fetch and Parse External Content
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1538.12 ▲11.86
Dashboard /wp-admin3.10 ▲0.0447.35 ▼0.30
Posts /wp-admin/edit.php3.15 ▲0.0446.65 ▼2.57
Add New Post /wp-admin/post-new.php5.45 ▲0.02107.91 ▼554.51
Media Library /wp-admin/upload.php3.04 ▲0.0436.94 ▲3.33

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Fetch URL - Fetch and Parse External Content
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.78 ▲0.269.74 ▼0.1950.50 ▲1.16
Dashboard /wp-admin2,967 ▲365.86 ▼0.07137.36 ▼6.40112.58 ▼11.61
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0072.46 ▲1.5894.56 ▼0.64
Add New Post /wp-admin/post-new.php1,581 ▼10218.17 ▼0.62444.74 ▲52.65153.47 ▲40.26
Media Library /wp-admin/upload.php1,810 ▼04.99 ▼0.03163.93 ▲17.24124.15 ▼4.00

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 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/fetchurl/index.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: shortcode, post, parse, plugin, html...

fetchurl/index.php 85% from 13 tests

The main file in "Fetch URL - Fetch and Parse External Content" v. 3.04.26 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 152 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("fetchurl.php" instead of "index.php")

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

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code1.03
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin