83% grabber-for-qqworld-auto-save-images

Code Review | Grabber for QQWorld Auto Save Images

WordPress plugin Grabber for QQWorld Auto Save Images scored 83% from 54 tests.

About plugin

  • Plugin page: grabber-for-qqwor...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1.1
  • WordPress version: 6.3.1
  • First release: Feb 7, 2015
  • Latest release: Apr 10, 2015
  • Number of updates: 10
  • Update frequency: every 6.2 days
  • Top authors: qqworld (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 2,206 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by Grabber for QQWorld Auto Save Images
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.45 ▼7.60
Dashboard /wp-admin3.32 ▲0.0145.15 ▼2.72
Posts /wp-admin/edit.php3.37 ▲0.0146.67 ▼0.29
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.56 ▼3.57
Media Library /wp-admin/upload.php3.24 ▲0.0135.24 ▼1.64

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Grabber for QQWorld Auto Save Images
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.24 ▼1.141.55 ▼0.5140.03 ▼6.71
Dashboard /wp-admin2,209 ▲215.91 ▲1.0294.03 ▼24.5339.63 ▼5.09
Posts /wp-admin/edit.php2,089 ▲32.01 ▲0.0138.31 ▲3.0133.90 ▼0.86
Add New Post /wp-admin/post-new.php1,542 ▲1418.67 ▲0.47630.98 ▲0.3571.72 ▲15.68
Media Library /wp-admin/upload.php1,388 ▲64.21 ▲0.0196.54 ▼7.2041.40 ▼4.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/grabber-for-qqworld-auto-save-images/grabber-4-qasi.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% 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 url: ""
The official readme.txt might help

grabber-for-qqworld-auto-save-images/grabber-4-qasi.php 85% from 13 tests

"Grabber for QQWorld Auto Save Images" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("grabber-for-qqworld-auto-save-images.php" instead of "grabber-4-qasi.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected210 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11510156
PO File116345954

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin