90% dadevarzan-wp-gallery

Code Review | Dadevarzan WordPress Gallery

WordPress plugin Dadevarzan WordPress Gallery scored90%from 54 tests.

About plugin

  • Plugin page: dadevarzan-wp-gal...
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Feb 18, 2019
  • Latest release: May 31, 2022
  • Number of updates: 9
  • Update frequency: every 133.1 days
  • Top authors: dadevarzan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,673 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
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼6.39ms] Passed 4 tests

Server-side resources used by Dadevarzan WordPress Gallery
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1039.26 ▼3.21
Dashboard /wp-admin3.40 ▲0.0550.55 ▼14.84
Posts /wp-admin/edit.php3.50 ▲0.1447.73 ▼2.51
Add New Post /wp-admin/post-new.php6.08 ▲0.1988.67 ▼5.00
Media Library /wp-admin/upload.php3.32 ▲0.0838.24 ▲2.16

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Dadevarzan WordPress Gallery
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.17 ▼0.211.81 ▲0.2142.57 ▲4.24
Dashboard /wp-admin2,226 ▲495.52 ▼0.1384.69 ▼7.3741.49 ▼0.15
Posts /wp-admin/edit.php2,131 ▲282.02 ▼0.0133.75 ▼6.3434.83 ▲0.22
Add New Post /wp-admin/post-new.php1,552 ▲1723.19 ▲5.01673.92 ▲64.3553.91 ▼14.69
Media Library /wp-admin/upload.php1,431 ▲314.11 ▼0.03112.55 ▲9.0047.35 ▲2.14

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP 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 is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: wp, dadehvarzan, dadevarzan, wordpress, gallery

dadevarzan-wp-gallery/dadevarzan-wp-gallery.php Passed 13 tests

The main PHP script in "Dadevarzan WordPress Gallery" version 1.2.3 is automatically included on every request by WordPress
31 characters long description:
gallery post type for wordpress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin217 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23618175
PO File1141542

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods7100.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin