90% urlbox-screenshots

Code Review | Urlbox Screenshots

WordPress plugin Urlbox Screenshots scored90%from 54 tests.

About plugin

  • Plugin page: urlbox-screenshots
  • Plugin version: 1.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.9
  • WordPress version: 6.3.1
  • First release: Oct 27, 2016
  • Latest release: Mar 8, 2022
  • Number of updates: 37
  • Update frequency: every 52.9 days
  • Top authors: urlbox (72.97%)logicelf (29.73%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,364 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.49ms] Passed 4 tests

An overview of server-side resources used by Urlbox Screenshots
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.04 ▲1.46
Dashboard /wp-admin3.34 ▼0.0042.49 ▼14.30
Posts /wp-admin/edit.php3.45 ▲0.1043.40 ▼1.51
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.27 ▼11.81
Media Library /wp-admin/upload.php3.26 ▲0.0331.14 ▼2.32
Urlbox /wp-admin/options-general.php?page=urlbox-screenshots3.2328.67

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Urlbox Screenshots
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.442.18 ▲0.6740.25 ▼0.97
Dashboard /wp-admin2,199 ▲225.59 ▼0.0790.02 ▲2.9738.33 ▼0.73
Posts /wp-admin/edit.php2,107 ▲71.94 ▼0.0636.79 ▼2.4430.32 ▼6.63
Add New Post /wp-admin/post-new.php1,540 ▲918.33 ▼4.39605.90 ▼36.9260.18 ▲9.38
Media Library /wp-admin/upload.php1,404 ▲44.20 ▼0.0098.16 ▲3.2640.55 ▼4.21
Urlbox /wp-admin/options-general.php?page=urlbox-screenshots1,0232.0123.1234.00

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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
Please fix the following attributes:
  • Tags: There are too many tags (14 tag instead of maximum 10)
Please take inspiration from this readme.txt

urlbox-screenshots/urlbox-screenshots.php Passed 13 tests

The principal PHP file in "Urlbox Screenshots" v. 1.5.2 is loaded by WordPress automatically on each request
69 characters long description:
Take screenshots of websites and display them on your wordpress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin439 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP145105439

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity57.00
▷ Minimum class complexity57.00
▷ Maximum class complexity57.00
Average method complexity4.11
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods1794.44%
▷ Protected methods15.56%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin