83% grabzit-web-capture

Code Review | GrabzIt Web Capture

WordPress plugin GrabzIt Web Capture scored 83% from 54 tests.

About plugin

  • Plugin page: grabzit-web-capture
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-5.6.2
  • WordPress version: 5.8.1
  • First release: Oct 8, 2017
  • Latest release: Oct 14, 2021
  • Number of updates: 39
  • Update frequency: every 37.6 days
  • Top authors: grabzit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 959 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.89MB] [CPU: ▼199.96ms] Passed 4 tests

Analyzing server-side resources used by GrabzIt Web Capture
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0244.13 ▼4.49
Dashboard /wp-admin2.75 ▼0.3025.67 ▼33.35
Posts /wp-admin/edit.php2.75 ▼0.3527.54 ▼35.31
Add New Post /wp-admin/post-new.php2.75 ▼2.6826.79 ▼718.04
Media Library /wp-admin/upload.php2.75 ▼0.2525.59 ▼13.14
GrabzIt /wp-admin/options-general.php?page=GrabzIt2.7621.62

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for GrabzIt Web Capture
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲11216.05 ▲0.4613.00 ▼0.1751.47 ▼0.10
Dashboard /wp-admin2,972 ▲445.93 ▼0.04145.61 ▼38.75115.92 ▼11.39
Posts /wp-admin/edit.php2,744 ▲52.70 ▼0.0272.37 ▼16.4890.97 ▼26.19
Add New Post /wp-admin/post-new.php1,686 ▲10518.77 ▲1.06408.48 ▼22.46114.05 ▼3.67
Media Library /wp-admin/upload.php1,812 ▲55.00 ▼0.03156.34 ▼4.80130.69 ▲8.65
GrabzIt /wp-admin/options-general.php?page=GrabzIt1,1202.0965.5094.48

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 cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5495
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=GrabzIt
    • > User deprecated in wp-includes/functions.php+5495
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=GrabzIt
    • > Notice in wp-content/plugins/grabzit-web-capture/grabzitplugin.admin.php+6
    Undefined index: grabzit_hidden

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Requires php: Invalid version format
You can look at the official readme.txt

grabzit-web-capture/grabzitplugin.php 85% from 13 tests

The principal PHP file in "GrabzIt Web Capture" v. 1.0.6 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 268 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("grabzit-web-capture.php" instead of "grabzitplugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin247 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File24040136
PHP21814110
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected