78% king-grabber

Code Review | King Grabber

WordPress plugin King Grabber scored 78% from 54 tests.

About plugin

  • Plugin page: king-grabber
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Aug 19, 2018
  • Latest release: Nov 29, 2018
  • Number of updates: 14
  • Update frequency: every 7.3 days
  • Top authors: qyax (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,602 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.66ms] Passed 4 tests

Analyzing server-side resources used by King Grabber
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.60 ▲4.39
Dashboard /wp-admin3.38 ▲0.0848.65 ▼0.41
Posts /wp-admin/edit.php3.49 ▲0.1446.39 ▼1.43
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.38 ▼13.20
Media Library /wp-admin/upload.php3.30 ▲0.0739.47 ▲5.97
Multi Grabber /wp-admin/admin.php?page=ktg_tools3.2833.81
Settings /wp-admin/admin.php?page=ktg_settings3.2730.70

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
ktg_options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for King Grabber
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10613.69 ▼0.695.11 ▲3.4545.28 ▲5.70
Dashboard /wp-admin2,241 ▲535.11 ▼0.79106.48 ▲2.8637.52 ▼3.99
Posts /wp-admin/edit.php2,130 ▲412.11 ▲0.1137.86 ▲1.6532.70 ▼2.63
Add New Post /wp-admin/post-new.php6,573 ▲5,03920.50 ▼2.81920.96 ▲308.9463.56 ▲2.42
Media Library /wp-admin/upload.php1,429 ▲414.28 ▲0.07112.47 ▲14.8146.19 ▲5.33
Multi Grabber /wp-admin/admin.php?page=ktg_tools1,0811.8733.1024.63
Settings /wp-admin/admin.php?page=ktg_settings9572.2826.8732.61

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/king-grabber/ktg_settings.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/king-grabber/ktg_settings.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/king-grabber/ktg_tools.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ktg_settings
    • > Network (severe)
    https://app.kinggrabber.com/api/v1/list - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
You can take inspiration from this readme.txt

king-grabber/king-grabber.php Passed 13 tests

"King Grabber" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
104 characters long description:
King Grabber, this plugin will grab your favorite Host Comic chapter and more Community service easyliy.

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 detected1,319 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS1876506
JavaScript3103397
PHP43635390
SVG10026

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
search-sprite-2x.png0.72KB0.83KB0.00%
search-sprite.png0.53KB0.88KB0.00%