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.15MB] [CPU: ▲0.89ms] Passed 4 tests
Server-side resources used by Bookwize Integrated Cinnamon
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 36.57 ▼4.66 |
Dashboard /wp-admin | 3.49 ▲0.19 | 56.62 ▲5.28 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 57.35 ▲9.07 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 100.95 ▼2.41 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 45.16 ▲5.35 |
Server storage [IO: ▲5.87MB] [DB: ▲0.18MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 169 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
wp-dynamic-css-cache |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Bookwize Integrated Cinnamon
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲71 | 14.78 ▲0.25 | 2.07 ▲0.14 | 41.81 ▼3.51 |
Dashboard /wp-admin | 2,235 ▲58 | 5.69 ▲0.18 | 84.23 ▼22.04 | 39.24 ▼4.19 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 2.24 ▲0.25 | 41.45 ▲4.09 | 35.15 ▼0.80 |
Add New Post /wp-admin/post-new.php | 6,280 ▲4,752 | 19.08 ▼4.26 | 887.65 ▲210.18 | 37.90 ▼10.63 |
Media Library /wp-admin/upload.php | 1,443 ▲46 | 4.40 ▲0.25 | 99.98 ▼18.59 | 49.97 ▲2.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.18MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- wp-dynamic-css-cache
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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
Please take a closer look at the following
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/bookwize-integrated-cinnamon/public/partials/bookwize-public-display.php
- > /wp-content/plugins/bookwize-integrated-cinnamon/public/vendor/stlyle.php
- > /wp-content/plugins/bookwize-integrated-cinnamon/admin/partials/bookwize-integrated-cinnamon-admin-display.php
- > /wp-content/plugins/bookwize-integrated-cinnamon/includes/bootstrap.php
- > /wp-content/plugins/bookwize-integrated-cinnamon/public/partials/bookwize-public-form.php
- > /wp-content/plugins/bookwize-integrated-cinnamon/admin/partials/bookwize-integrated-cinnamon-admin-flash-message.php
- 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant BW_PUBLIC_URL - assumed 'BW_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bookwize-integrated-cinnamon/public/partials/bookwize-public-display.php on line 48
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bookwize-integrated-cinnamon/functions.php:334
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/bookwize-integrated-cinnamon/admin/partials/bookwize-integrated-cinnamon-admin-settings.php:5
- > PHP Notice
Undefined variable: message in wp-content/plugins/bookwize-integrated-cinnamon/admin/partials/bookwize-integrated-cinnamon-admin-flash-message.php on line 2
- > PHP Warning
Use of undefined constant BW_PUBLIC_URL - assumed 'BW_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bookwize-integrated-cinnamon/public/partials/bookwize-public-display.php on line 33
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bookwize-integrated-cinnamon/admin/partials/bookwize-integrated-cinnamon-admin-meta-box.php:2
- > PHP Warning
Use of undefined constant BW_PUBLIC_URL - assumed 'BW_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bookwize-integrated-cinnamon/public/partials/bookwize-public-display.php on line 32
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bookwize-integrated-cinnamon/public/template-redirect-jcc.php:12
- > PHP Warning
Use of undefined constant BW_PUBLIC_URL - assumed 'BW_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bookwize-integrated-cinnamon/public/partials/bookwize-public-display.php on line 36
- > PHP Warning
Use of undefined constant BW_PUBLIC_URL - assumed 'BW_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bookwize-integrated-cinnamon/public/partials/bookwize-public-display.php on line 38
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4 in bookwize-integrated-cinnamon/assets to your readme.txt
bookwize-integrated-cinnamon/bookwize-integrated-cinnamon.php 85% from 13 tests
This is the main PHP file of "Bookwize Integrated Cinnamon" version 2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected36,341 lines of code in 125 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 10 | 122 | 76 | 18,948 |
HTML | 42 | 1,549 | 901 | 6,797 |
SVG | 3 | 0 | 3 | 3,343 |
PHP | 31 | 460 | 940 | 2,129 |
JavaScript | 10 | 624 | 220 | 1,806 |
Sass | 14 | 34 | 34 | 1,656 |
LESS | 14 | 34 | 44 | 1,646 |
JSON | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 7.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 99 | |
▷ Static methods | 10 | 10.10% |
▷ Public methods | 78 | 78.79% |
▷ Protected methods | 14 | 14.14% |
▷ Private methods | 7 | 7.07% |
Functions | 22 | |
▷ Named functions | 19 | 86.36% |
▷ Anonymous functions | 3 | 13.64% |
Constants | 14 | |
▷ Global constants | 14 | 100.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.47MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/banner-772x250png.png | 56.58KB | 20.57KB | ▼ 63.64% |
public/img/screenshot4.png | 58.10KB | 23.58KB | ▼ 59.41% |
public/img/screenshot3.png | 212.02KB | 77.71KB | ▼ 63.35% |
public/img/credit-cards.png | 13.49KB | 6.00KB | ▼ 55.50% |
public/img/banner-1544x500.png | 77.11KB | 33.90KB | ▼ 56.04% |