79% nvv-debug-lines

Code Review | NVV Debug Lines

WordPress plugin NVV Debug Lines scored79%from 54 tests.

About plugin

  • Plugin page: nvv-debug-lines
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.7.1
  • WordPress version: 6.3.1
  • First release: May 6, 2021
  • Latest release: May 7, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: nvvdesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /310 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
This plugin's installer ran successfully

Server metrics [RAM: ▲1.55MB] [CPU: ▲10.83ms] Passed 4 tests

Analyzing server-side resources used by NVV Debug Lines
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.01 ▲1.5556.28 ▲12.41
Dashboard /wp-admin4.85 ▲1.5562.34 ▲12.18
Posts /wp-admin/edit.php4.97 ▲1.6169.82 ▲16.80
Add New Post /wp-admin/post-new.php7.45 ▲1.5694.85 ▲3.63
Media Library /wp-admin/upload.php4.75 ▲1.5251.37 ▲15.09
NVV Debug Lines options /wp-admin/options-general.php?page=nvv_debug_lines_options4.8449.25

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for NVV Debug Lines
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,169 ▲40818.70 ▲4.085.86 ▲3.9977.85 ▲32.70
Dashboard /wp-admin2,467 ▲2878.97 ▲3.28171.66 ▲86.2140.18 ▼2.87
Posts /wp-admin/edit.php2,401 ▲3016.09 ▲4.1177.35 ▲42.6235.75 ▼0.08
Add New Post /wp-admin/post-new.php1,601 ▲6419.70 ▼3.18656.56 ▼2.9236.51 ▼23.67
Media Library /wp-admin/upload.php1,551 ▲1486.60 ▲2.41108.21 ▲3.5439.80 ▼4.83
NVV Debug Lines options /wp-admin/options-general.php?page=nvv_debug_lines_options1,7787.26138.4735.27

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/nvv-debug-lines/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 112× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/nvv-debug-lines/vendor/htmlburger/carbon-fields/templates/Container/term_meta.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Meta_Datastore' not found in wp-content/plugins/nvv-debug-lines/vendor/htmlburger/carbon-fields/core/Datastore/Term_Meta_Datastore.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/nvv-debug-lines/vendor/htmlburger/carbon-fields/core/Field/Media_Gallery_Field.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/nvv-debug-lines/vendor/htmlburger/carbon-fields/core/Field/Radio_Image_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Carbon_Fields\\Container\\Fulfillable\\Fulfillable' not found in wp-content/plugins/nvv-debug-lines/vendor/htmlburger/carbon-fields/core/Container/Fulfillable/Fulfillable_Collection.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/nvv-debug-lines/vendor/htmlburger/carbon-fields/core/Container/Condition/User_ID_Condition.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/nvv-debug-lines/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Contain_Comparer.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Textarea_Field' not found in wp-content/plugins/nvv-debug-lines/vendor/htmlburger/carbon-fields/core/Field/Scripts_Field.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Datastore' not found in wp-content/plugins/nvv-debug-lines/vendor/htmlburger/carbon-fields/core/Datastore/Empty_Datastore.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Carbon_Fields' not found in wp-content/plugins/nvv-debug-lines/vendor/htmlburger/carbon-fields/config.php:17

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: selectors, debug function, highlight lines, debug, lines

nvv-debug-lines/nvv-debug-lines.php Passed 13 tests

This is the main PHP file of "NVV Debug Lines" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
98 characters long description:
Help for developers. Highlighting blocks of code with colored lines. Functions for debugging code.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected28,206 lines of code in 414 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1725,1958,45912,958
PHP1522,5536,6248,995
PO File278931,1432,293
CSS83471,1421,768
Sass4833801,764
JSON400360
Markdown324068

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity8.31
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces22
Interfaces5
Traits0
Classes121
▷ Abstract classes119.09%
▷ Concrete classes11090.91%
▷ Final classes10.91%
Methods898
▷ Static methods9010.02%
▷ Public methods72981.18%
▷ Protected methods16518.37%
▷ Private methods40.45%
Functions118
▷ Named functions3529.66%
▷ Anonymous functions8370.34%
Constants29
▷ Global constants620.69%
▷ Class constants2379.31%
▷ Public constants23100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
options/carbonfields/images/var_dump_pict.png7.56KB2.81KB▼ 62.86%