83% grab-urls

Code Review |

WordPress plugin scored83%from 54 tests.

About plugin

  • Plugin page: grab-urls
  • Plugin version: 2...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 6.3.1
  • First release: Apr 10, 2014
  • Latest release: Mar 7, 2020
  • Number of updates: 11
  • Update frequency: every 196.4 days
  • Top authors: webmaster in texas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,185 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.01MB] [CPU: ▼2.61ms] Passed 4 tests

An overview of server-side resources used by
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.08 ▼9.62
Dashboard /wp-admin3.31 ▲0.0144.20 ▼3.22
Posts /wp-admin/edit.php3.36 ▲0.0147.19 ▲1.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0197.40 ▲4.40
Media Library /wp-admin/upload.php3.23 ▲0.0136.65 ▲0.72

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

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

Browser metrics Passed 4 tests

: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.33 ▼1.041.62 ▼0.6741.40 ▼6.26
Dashboard /wp-admin2,215 ▲245.86 ▲0.97106.97 ▼13.2238.77 ▼2.97
Posts /wp-admin/edit.php2,098 ▲91.99 ▼0.0639.50 ▲2.6635.00 ▲0.96
Add New Post /wp-admin/post-new.php1,544 ▲1018.23 ▼5.01610.88 ▲0.6152.49 ▲2.53
Media Library /wp-admin/upload.php1,391 ▲34.20 ▲0.0297.47 ▼4.0444.56 ▲0.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/grab-urls/graburls.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'WPSEO_Frontend' not found in wp-content/plugins/grab-urls/urls.template.php:2

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 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

grab-urls/graburls.php 77% from 13 tests

The entry point to "" version 2... is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("grab-urls.php" instead of "graburls.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 334 characters long)
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "2...")

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
Good job! No executable or dangerous file extensions detected42 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP291342

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin