84% dts-debugger

Code Review | Scrape and Debug

WordPress plugin Scrape and Debug scored84%from 54 tests.

About plugin

  • Plugin page: dts-debugger
  • Plugin version: 0.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.8
  • WordPress version: 6.3.1
  • First release: Sep 2, 2016
  • Latest release: Jul 24, 2021
  • Number of updates: 54
  • Update frequency: every 33.1 days
  • Top authors: MissionMike (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,969 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: ▼3.62ms] Passed 4 tests

Analyzing server-side resources used by Scrape and Debug
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.61 ▼1.33
Dashboard /wp-admin3.39 ▲0.0945.34 ▼4.55
Posts /wp-admin/edit.php3.50 ▲0.1545.69 ▼3.56
Add New Post /wp-admin/post-new.php5.97 ▲0.0981.34 ▼5.02
Media Library /wp-admin/upload.php3.31 ▲0.0834.70 ▲2.89
Scrape and Debug /wp-admin/options-general.php?page=dts-debugger3.2830.19

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Scrape and Debug
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.20 ▼1.184.61 ▲2.7543.61 ▲0.58
Dashboard /wp-admin2,227 ▲364.88 ▼0.01103.04 ▼16.3241.28 ▼1.67
Posts /wp-admin/edit.php2,106 ▲172.05 ▲0.0435.58 ▼4.7834.87 ▲1.80
Add New Post /wp-admin/post-new.php1,531 ▲1222.67 ▼0.53697.27 ▲24.4552.50 ▲2.67
Media Library /wp-admin/upload.php1,406 ▲214.27 ▲0.07100.01 ▼0.4543.18 ▲0.19
Scrape and Debug /wp-admin/options-general.php?page=dts-debugger1,0581.7123.5230.12

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 7× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/dts-debugger/dts-settings.php
    • > /wp-content/plugins/dts-debugger/include/metabox.php
    • > /wp-content/plugins/dts-debugger/include/settings.php
    • > /wp-content/plugins/dts-debugger/include/data.php
    • > /wp-content/plugins/dts-debugger/dts-debugger.php
    • > /wp-content/plugins/dts-debugger/include/enqueue.php
    • > /wp-content/plugins/dts-debugger/include/setup.php

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in dts-debugger/assets to your readme.txt
The official readme.txt is a good inspiration

dts-debugger/dts-debugger.php 92% from 13 tests

This is the main PHP file of "Scrape and Debug" version 0.5.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 197 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected512 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP716171338
CSS1211141
JavaScript11120
Markdown112013

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions22
▷ Named functions2090.91%
▷ Anonymous functions29.09%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/facebook.png5.40KB5.71KB0.00%
images/linkedin.png2.67KB2.77KB0.00%
images/pagespeed.png4.26KB4.41KB0.00%
images/google-deprecated.png5.53KB5.67KB0.00%
images/google.png5.20KB5.38KB0.00%