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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 45.13 ▲7.03 |
Dashboard /wp-admin | 3.43 ▲0.13 | 59.99 ▲11.92 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 56.56 ▲11.77 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 104.08 ▲6.82 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 47.27 ▲13.80 |
cbVegas /wp-admin/options-general.php?page=cb_vegas_settings_page | 3.39 | 40.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲75 | 14.75 ▲0.34 | 1.66 ▼0.00 | 42.54 ▼2.31 |
Dashboard /wp-admin | 2,216 ▲31 | 4.87 ▼0.04 | 109.08 ▲2.45 | 46.64 ▲4.29 |
Posts /wp-admin/edit.php | 2,102 ▲10 | 2.03 ▲0.02 | 40.00 ▲1.83 | 34.77 ▲3.56 |
Add New Post /wp-admin/post-new.php | 6,475 ▲4,955 | 20.21 ▼2.98 | 826.64 ▲148.90 | 58.50 ▼5.43 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 4.31 ▲0.13 | 96.42 ▼6.21 | 43.85 ▼2.55 |
cbVegas /wp-admin/options-general.php?page=cb_vegas_settings_page | 1,565 | 3.69 | 57.55 | 74.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 1,257 | 2,580 | 2,844 |
CSS | 8 | 318 | 678 | 2,194 |
JavaScript | 8 | 307 | 160 | 1,515 |
PO File | 1 | 161 | 362 | 308 |
Markdown | 1 | 52 | 0 | 107 |
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 code | 0.35 |
Average class complexity | 24.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 202 | |
▷ Static methods | 5 | 2.48% |
▷ Public methods | 153 | 75.74% |
▷ Protected methods | 4 | 1.98% |
▷ Private methods | 45 | 22.28% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/vegas-slideshow/overlays/03.png | 0.20KB | 0.10KB | ▼ 53.11% |
vendor/vegas-slideshow/overlays/01.png | 0.21KB | 0.10KB | ▼ 52.61% |
vendor/vegas-slideshow/overlays/09.png | 0.13KB | 0.12KB | ▼ 13.87% |
vendor/vegas-slideshow/overlays/07.png | 0.21KB | 0.10KB | ▼ 51.63% |
vendor/vegas-slideshow/overlays/08.png | 0.14KB | 0.11KB | ▼ 26.03% |