84% grablook

Code Review | GrabLook

WordPress plugin GrabLook scored84%from 54 tests.

About plugin

  • Plugin page: grablook
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.5.3
  • WordPress version: 6.3.1
  • First release: Aug 2, 2016
  • Latest release: Nov 6, 2020
  • Number of updates: 23
  • Update frequency: every 67.7 days
  • Top authors: grablook (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /679 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

This is a short check of server-side resources used by GrabLook
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0046.74 ▲4.37
Dashboard /wp-admin3.31 ▲0.0155.01 ▼0.51
Posts /wp-admin/edit.php3.36 ▲0.0150.00 ▲1.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.42 ▼10.29
Media Library /wp-admin/upload.php3.23 ▲0.0137.54 ▼3.49
GrabLook /wp-admin/options-general.php?page=grablook_options3.2034.02

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

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

Browser metrics Passed 4 tests

A check of browser resources used by GrabLook
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.75 ▲0.371.95 ▲0.1243.65 ▼0.90
Dashboard /wp-admin2,207 ▲335.64 ▲0.0087.41 ▼12.1639.96 ▼9.37
Posts /wp-admin/edit.php2,115 ▲122.05 ▲0.0337.13 ▲0.6633.04 ▼4.76
Add New Post /wp-admin/post-new.php1,560 ▲1523.20 ▼0.12673.11 ▼18.5657.23 ▲3.78
Media Library /wp-admin/upload.php1,412 ▲154.22 ▼0.12105.44 ▲1.7548.86 ▲4.13
GrabLook /wp-admin/options-general.php?page=grablook_options8482.0525.9728.68

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 detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/grablook/grablook.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: content amplification, customer engagement, social sharing

grablook/grablook.php 92% from 13 tests

This is the main PHP file of "GrabLook" version 2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 175 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin67 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1372667

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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