84% dl-verification

Code Review | DL Verification

WordPress plugin DL Verification scored84%from 54 tests.

About plugin

  • Plugin page: dl-verification
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.6
  • WordPress version: 6.3.1
  • First release: Jan 21, 2014
  • Latest release: Aug 26, 2016
  • Number of updates: 38
  • Update frequency: every 25.0 days
  • Top authors: dyadyalesha (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active /12,785 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
Installer ran successfully

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

Analyzing server-side resources used by DL Verification
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.63 ▲0.25
Dashboard /wp-admin3.32 ▲0.0145.39 ▼8.20
Posts /wp-admin/edit.php3.37 ▲0.0148.08 ▼8.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0197.97 ▼8.39
Media Library /wp-admin/upload.php3.24 ▲0.0132.62 ▼4.59

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for DL Verification
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.31 ▼0.051.83 ▲0.0742.62 ▲1.79
Dashboard /wp-admin2,208 ▲285.54 ▼0.1492.31 ▲0.6042.83 ▼2.05
Posts /wp-admin/edit.php2,116 ▲162.01 ▲0.0141.31 ▲1.5936.30 ▼2.70
Add New Post /wp-admin/post-new.php1,558 ▲2423.29 ▲0.16680.82 ▲59.3161.76 ▲2.73
Media Library /wp-admin/upload.php1,416 ▲164.26 ▲0.0799.39 ▼9.4146.10 ▼1.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/dl-verification/options-page.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dl-verification/dl-verification.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% 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
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Настройки плагина) image missing
You can take inspiration from this readme.txt

dl-verification/dl-verification.php Passed 13 tests

The main PHP script in "DL Verification" version 1.2 is automatically included on every request by WordPress
115 characters long description:
Позволяет добавить код отследивания и код счетчика на ваш сайт

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin201 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24412201

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
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

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.22MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
sprites.png5.19KB1.82KB▼ 64.99%
screenshot-1.png222.53KB75.32KB▼ 66.15%