79% cb-vegas

Code Review | cbVegas

WordPress plugin cbVegas scored 79% from 54 tests.

About plugin

  • Plugin page: cb-vegas
  • Plugin version: 0.3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.7.2
  • WordPress version: 6.3.1
  • First release: Dec 26, 2015
  • Latest release: Mar 22, 2017
  • Number of updates: 55
  • Update frequency: every 11.9 days
  • Top authors: OneMoreNerd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,809 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 gracefully, with no errors

Server metrics [RAM: ▲0.13MB] [CPU: ▲9.39ms] Passed 4 tests

This is a short check of server-side resources used by cbVegas
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1045.13 ▲7.03
Dashboard /wp-admin3.43 ▲0.1359.99 ▲11.92
Posts /wp-admin/edit.php3.54 ▲0.1956.56 ▲11.77
Add New Post /wp-admin/post-new.php6.03 ▲0.15104.08 ▲6.82
Media Library /wp-admin/upload.php3.35 ▲0.1347.27 ▲13.80
cbVegas /wp-admin/options-general.php?page=cb_vegas_settings_page3.3940.75

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
cb_vegas_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for cbVegas
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7514.75 ▲0.341.66 ▼0.0042.54 ▼2.31
Dashboard /wp-admin2,216 ▲314.87 ▼0.04109.08 ▲2.4546.64 ▲4.29
Posts /wp-admin/edit.php2,102 ▲102.03 ▲0.0240.00 ▲1.8334.77 ▲3.56
Add New Post /wp-admin/post-new.php6,475 ▲4,95520.21 ▼2.98826.64 ▲148.9058.50 ▼5.43
Media Library /wp-admin/upload.php1,398 ▲134.31 ▲0.1396.42 ▼6.2143.85 ▼2.55
cbVegas /wp-admin/options-general.php?page=cb_vegas_settings_page1,5653.6957.5574.35

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • cb_vegas_options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'CB_Vegas_Validation' not found in wp-content/plugins/cb-vegas/admin/menu/includes/class-cb-vegas-settings.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=cb_vegas_settings_page
    • > Network (severe)
    wp-content/plugins/cb-vegas/admin/menu/css/menu.css?ver=all - Failed to load resource: the server responded with a status of 404 (Not Found)

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
8 plugin tags: hintergrundbild, bild, slideshow, image, fullscreen...

cb-vegas/cb-vegas.php Passed 13 tests

The primary PHP file in "cbVegas" version 0.3.6 is used by WordPress to initiate all plugin functionality
102 characters long description:
This plugin enables you to use the "Vegas Background Slideshow" for images on regular posts and pages.

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
No dangerous file extensions were detected6,968 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP211,2572,5802,844
CSS83186782,194
JavaScript83071601,515
PO File1161362308
Markdown1520107

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity24.44
▷ Minimum class complexity1.00
▷ Maximum class complexity86.00
Average method complexity3.09
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods202
▷ Static methods52.48%
▷ Public methods15375.74%
▷ Protected methods41.98%
▷ Private methods4522.28%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/vegas-slideshow/overlays/03.png0.20KB0.10KB▼ 53.11%
vendor/vegas-slideshow/overlays/01.png0.21KB0.10KB▼ 52.61%
vendor/vegas-slideshow/overlays/09.png0.13KB0.12KB▼ 13.87%
vendor/vegas-slideshow/overlays/07.png0.21KB0.10KB▼ 51.63%
vendor/vegas-slideshow/overlays/08.png0.14KB0.11KB▼ 26.03%