84% getcontentfromurl

Code Review | GetContentFromURL

WordPress plugin GetContentFromURL scored84%from 54 tests.

About plugin

  • Plugin page: getcontentfromurl
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Jul 12, 2017
  • Latest release: Jul 12, 2017
  • Number of updates: 14
  • Update frequency: every 0.2 days
  • Top authors: Daschmi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,010 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
Installer ran successfully

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

Server-side resources used by GetContentFromURL
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0145.94 ▼8.71
Dashboard /wp-admin3.32 ▲0.0150.32 ▼1.93
Posts /wp-admin/edit.php3.37 ▲0.0149.05 ▼14.06
Add New Post /wp-admin/post-new.php5.90 ▲0.01102.68 ▼6.77
Media Library /wp-admin/upload.php3.24 ▲0.0135.60 ▼3.27

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

GetContentFromURL: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.061.60 ▼1.1440.49 ▼16.46
Dashboard /wp-admin2,192 ▲155.66 ▼0.0392.94 ▲2.6740.38 ▲0.62
Posts /wp-admin/edit.php2,100 ▼32.03 ▼0.0038.97 ▼9.8835.03 ▼9.04
Add New Post /wp-admin/post-new.php1,548 ▲323.02 ▼0.11589.30 ▼123.6055.18 ▲1.70
Media Library /wp-admin/upload.php1,394 ▼34.20 ▼0.0796.93 ▼25.7044.94 ▼2.54

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • 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
Everything seems fine, however this is by no means an exhaustive test

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
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 gcfu\\add_shortcode() in wp-content/plugins/getcontentfromurl/getcontentfromurl.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: shortcode, xpath, content, url, read

getcontentfromurl/getcontentfromurl.php 92% from 13 tests

The principal PHP file in "GetContentFromURL" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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 plugin66 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4352951
PO File10015

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity1.67
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes3100.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods3
▷ Static methods3100.00%
▷ Public methods3100.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
PNG images were not found in this plugin