74% tida-url-screenshot

Code Review | Tida URL Screenshot

WordPress plugin Tida URL Screenshot scored74%from 54 tests.

About plugin

  • Plugin page: tida-url-screenshot
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Jul 19, 2022
  • Latest release: Jul 19, 2022
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: tidaweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /154 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.83MB] [CPU: ▼34.61ms] Passed 4 tests

This is a short check of server-side resources used by Tida URL Screenshot
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.15 ▲1.59
Dashboard /wp-admin3.11 ▼0.1928.02 ▼21.83
Posts /wp-admin/edit.php3.11 ▼0.2427.89 ▼26.82
Add New Post /wp-admin/post-new.php3.11 ▼2.7729.41 ▼76.92
Media Library /wp-admin/upload.php3.11 ▼0.1222.35 ▼12.85
Tida URL Screenshot Settings /wp-admin/options-general.php?page=tida-url-screenshot-settings3.1125.84

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tida URL Screenshot
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.30 ▼1.005.23 ▲3.2640.52 ▼3.43
Dashboard /wp-admin2,225 ▲194.85 ▼0.27102.07 ▼4.0837.57 ▼6.13
Posts /wp-admin/edit.php2,101 ▼22.05 ▲0.0639.98 ▼4.9237.84 ▲0.97
Add New Post /wp-admin/post-new.php1,549 ▲923.10 ▲4.90623.19 ▼7.7662.57 ▲5.11
Media Library /wp-admin/upload.php1,407 ▲104.25 ▼0.1298.45 ▼6.3042.92 ▼2.06
Tida URL Screenshot Settings /wp-admin/options-general.php?page=tida-url-screenshot-settings8202.0726.0328.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/tida-url-screenshot/includes/admin/class-settings.php+113
    Undefined variable: list
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=tida-url-screenshot-settings
    • > Notice in wp-content/plugins/tida-url-screenshot/includes/admin/class-settings.php+113
    Undefined variable: list

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: url screenshot, screenshot tool

tida-url-screenshot/tida-url-screenshot.php Passed 13 tests

This is the main PHP file of "Tida URL Screenshot" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
79 characters long description:
This plugin is adding the tool on your website that take a screenshot from URL.

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
Success! There were no dangerous files found in this plugin490 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP5140171448
JavaScript10023
CSS14219

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity15.50
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity3.32
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods25
▷ Static methods624.00%
▷ Public methods2496.00%
▷ Protected methods00.00%
▷ Private methods14.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin