78% plugin-grabber

Code Review | Plugin Grabber

WordPress plugin Plugin Grabber scored78%from 54 tests.

About plugin

  • Plugin page: plugin-grabber
  • Plugin version: 1.02
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.1
  • WordPress version: 6.3.1
  • First release: Nov 13, 2012
  • Latest release: Apr 28, 2015
  • Number of updates: 7
  • Update frequency: every 131.3 days
  • Top authors: avdude (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,728 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
Install script ran successfully

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

This is a short check of server-side resources used by Plugin Grabber
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.64 ▼8.44
Dashboard /wp-admin3.34 ▲0.0345.30 ▲0.93
Posts /wp-admin/edit.php3.39 ▲0.0345.14 ▼1.40
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.57 ▲6.26
Media Library /wp-admin/upload.php3.26 ▲0.0335.19 ▲1.11
Plugin Grabber /wp-admin/tools.php?page=plugin-grabber/plugin-grabber.php3.2030.73
Plugin Grabber /wp-admin/plugins.php?page=plugin-grabber/plugin-grabber.php3.2030.00

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Plugin Grabber
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.21 ▼1.141.66 ▼0.2041.27 ▼3.15
Dashboard /wp-admin2,211 ▲234.88 ▼1.02102.11 ▼3.2138.82 ▼0.87
Posts /wp-admin/edit.php2,094 ▲22.00 ▼0.0339.27 ▼3.9833.80 ▼3.28
Add New Post /wp-admin/post-new.php1,534 ▲423.46 ▲4.92668.59 ▲28.9054.86 ▼3.42
Media Library /wp-admin/upload.php1,393 ▲54.28 ▲0.1194.49 ▼5.5746.50 ▲4.37
Plugin Grabber /wp-admin/tools.php?page=plugin-grabber/plugin-grabber.php8732.0127.0624.74
Plugin Grabber /wp-admin/plugins.php?page=plugin-grabber/plugin-grabber.php8752.0124.0324.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=plugin-grabber/plugin-grabber.php
    • > Notice in wp-content/plugins/plugin-grabber/plugin-grabber.php+81
    Undefined index: action
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=plugin-grabber/plugin-grabber.php
    • > Notice in wp-content/plugins/plugin-grabber/plugin-grabber.php+125
    Undefined variable: plugin

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/plugin-grabber/plugin-grabber.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: zip, backup, archive, plugins

plugin-grabber/plugin-grabber.php 92% from 13 tests

The primary PHP file in "Plugin Grabber" version 1.02 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 194 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin199 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13148199

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/plugingrabber.png16.58KB6.64KB▼ 59.95%
images/themegrabber.png25.64KB8.32KB▼ 67.56%