90% divein-builder

Code Review | Divein Builder

WordPress plugin Divein Builder scored 90% from 54 tests.

About plugin

  • Plugin page: divein-builder
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9
  • WordPress version: 6.3.1
  • First release: Dec 28, 2017
  • Latest release: Dec 30, 2017
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: diveinwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 894 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: ▼0.89ms] Passed 4 tests

An overview of server-side resources used by Divein Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.98 ▼0.13
Dashboard /wp-admin3.31 ▲0.0149.60 ▼0.26
Posts /wp-admin/edit.php3.37 ▲0.0146.41 ▼0.78
Add New Post /wp-admin/post-new.php5.95 ▲0.0696.67 ▲2.05
Media Library /wp-admin/upload.php3.24 ▲0.0132.52 ▼2.37

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

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

Browser metrics Passed 4 tests

Divein Builder: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲16213.70 ▼0.686.62 ▲4.9942.16 ▼9.93
Dashboard /wp-admin2,206 ▲205.81 ▼0.0997.46 ▼10.2540.20 ▼0.71
Posts /wp-admin/edit.php2,086 ▲182.04 ▼0.0034.42 ▼1.4832.31 ▼0.27
Add New Post /wp-admin/post-new.php6,783 ▲5,24123.38 ▲4.99909.32 ▲296.8833.16 ▼25.41
Media Library /wp-admin/upload.php1,391 ▲34.16 ▼0.11100.51 ▲3.8145.32 ▼0.25

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Contributors: The plugin contributors field is missing
Please take inspiration from this readme.txt

divein-builder/divein-builder.php Passed 13 tests

The main PHP file in "Divein Builder" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
117 characters long description:
Advanced drag and drop page builder plugin. Create pages and posts visually with any theme, any template, any design.

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
Everything looks great! No dangerous files found in this plugin10,591 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript101,1651,1636,057
CSS161712113,378
PHP2201325828
JSON100214
Markdown137069
SVG133045

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/lib/owl/assets/owl.video.play.png4.86KB2.74KB▼ 43.61%
assets/images/camera_skins.png23.63KB11.65KB▼ 50.70%