84% webcam-gallery

Code Review | Webcam Gallery

WordPress plugin Webcam Gallery scored84%from 54 tests.

About plugin

  • Plugin page: webcam-gallery
  • Plugin version: 0.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.1
  • WordPress version: 6.3.1
  • First release: Jun 22, 2023
  • Latest release: Jun 22, 2023
  • Number of updates: 4
  • Update frequency: every 12.8 days
  • Top authors: ujw0l (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /312 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Webcam Gallery
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.48 ▼6.77
Dashboard /wp-admin3.32 ▲0.0146.73 ▼2.41
Posts /wp-admin/edit.php3.37 ▲0.0144.74 ▼3.26
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.05 ▼12.38
Media Library /wp-admin/upload.php3.24 ▲0.0135.95 ▲0.82

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Webcam Gallery
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲6813.69 ▼0.941.61 ▼0.2839.19 ▼4.62
Dashboard /wp-admin2,209 ▲184.90 ▼0.1398.47 ▼5.8140.85 ▼1.60
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0132.87 ▼4.9036.42 ▲3.81
Add New Post /wp-admin/post-new.php6,249 ▲4,73019.55 ▼3.60900.42 ▲220.4767.96 ▲9.97
Media Library /wp-admin/upload.php1,391 ▼04.30 ▲0.1298.86 ▼2.0841.82 ▼1.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webcam-gallery/webcam-gallery.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (Gutenberg Editor with block), #2 (Images In Modal), #3 (Gallery 1), #4 (Block Settings), #5 (Frontend Overlay), #6 (Carousel Gallery), #7 (Masonry Gallery)
You can take inspiration from this readme.txt

webcam-gallery/webcam-gallery.php Passed 13 tests

The principal PHP file in "Webcam Gallery" v. 0.1.0 is loaded by WordPress automatically on each request
67 characters long description:
Plugin to take picture with WebCam and create galleries in editor .

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin19,777 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JSON41019,224
JavaScript616670469
Sass219075
PHP32207
CSS2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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
There are no PNG files in this plugin