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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▲3.81ms] Passed 4 tests
An overview of server-side resources used by Quotes and Tips by BestWebSoft
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 40.31 ▼8.18 |
Dashboard /wp-admin | 3.45 ▲0.15 | 56.77 ▲10.18 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 55.93 ▲6.04 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 106.24 ▲7.51 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 42.56 ▲9.85 |
Tips Categories /wp-admin/edit-tags.php?taxonomy=tips_categories&post_type=tips | 3.38 | 39.89 |
BWS Panel /wp-admin/edit.php?post_type=quote&page=qtsndtps-bws-panel | 3.84 | 42.23 |
Add New /wp-admin/post-new.php?post_type=tips | 3.51 | 62.78 |
BWS Panel /wp-admin/edit.php?post_type=tips&page=qtsndtps-bws-panel | 3.38 | 45.54 |
Quotes Categories /wp-admin/edit-tags.php?taxonomy=quotes_categories&post_type=quote | 3.38 | 42.38 |
Quotes /wp-admin/edit.php?post_type=quote | 3.43 | 43.22 |
Add New /wp-admin/post-new.php?post_type=quote | 3.59 | 55.91 |
Tips /wp-admin/edit.php?post_type=tips | 3.43 | 42.63 |
Server storage [IO: ▲4.96MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 128 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
bstwbsftwppdtplgns_options |
can_compress_scripts |
qtsndtps_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Quotes and Tips by BestWebSoft
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲125 | 13.33 ▼1.41 | 1.89 ▼0.17 | 41.17 ▼2.59 |
Dashboard /wp-admin | 2,288 ▲100 | 5.89 ▲0.02 | 111.10 ▲4.12 | 44.22 ▲1.87 |
Posts /wp-admin/edit.php | 2,343 ▲254 | 2.25 ▲0.19 | 39.00 ▼2.10 | 36.01 ▲0.75 |
Add New Post /wp-admin/post-new.php | 1,751 ▲231 | 17.78 ▼5.51 | 640.31 ▲19.90 | 54.84 ▲4.01 |
Media Library /wp-admin/upload.php | 1,476 ▲91 | 4.21 ▼0.05 | 99.58 ▼2.40 | 43.05 ▼1.47 |
Tips Categories /wp-admin/edit-tags.php?taxonomy=tips_categories&post_type=tips | 1,521 | 1.91 | 28.64 | 28.48 |
BWS Panel /wp-admin/edit.php?post_type=quote&page=qtsndtps-bws-panel | 3,047 | 2.00 | 43.98 | 71.63 |
Add New /wp-admin/post-new.php?post_type=tips | 2,540 | 7.79 | 174.94 | 66.56 |
BWS Panel /wp-admin/edit.php?post_type=tips&page=qtsndtps-bws-panel | 3,046 | 2.02 | 30.76 | 83.54 |
Quotes Categories /wp-admin/edit-tags.php?taxonomy=quotes_categories&post_type=quote | 1,524 | 1.92 | 29.89 | 26.50 |
Quotes /wp-admin/edit.php?post_type=quote | 1,357 | 2.02 | 31.98 | 30.32 |
Settings /wp-admin/quotes-and-tips.php | 26 | 0.44 | 0.10 | 12.94 |
Add New /wp-admin/post-new.php?post_type=quote | 2,818 | 7.89 | 180.62 | 59.31 |
Tips /wp-admin/edit.php?post_type=tips | 1,354 | 2.14 | 34.47 | 31.21 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
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
Even though no errors were found, 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
Almost there! Just fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/quotes-and-tips/quotes-and-tips.php:1398
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quotes-and-tips/bws_menu/class-bws-settings.php:1453
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/quotes-and-tips/includes/class-qtsndtps-settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/quotes-and-tips/bws_menu/product_list.php:9
- > 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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=tips&page=qtsndtps-bws-panel
- > Network (severe)
http://ps.w.org/custom-admin-page/assets/icon-256x256.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/quotes-and-tips.php
- > Network (severe)
wp-admin/quotes-and-tips.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (Frontend page with Quotes and Tips block.), #2 (Quotes and Tips Settings.), #3 (Quotes and Tips Appearance Settings.), #4 (Quote edit page.), #5 (Categories page.)
quotes-and-tips/quotes-and-tips.php Passed 13 tests
The main PHP file in "Quotes and Tips by BestWebSoft" ver. 1.44 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
Add customizable quotes and tips blocks to WordPress posts, pages and widgets.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected20,962 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 13 | 4,179 | 6,246 | 8,837 |
PHP | 10 | 521 | 630 | 5,981 |
CSS | 9 | 155 | 256 | 5,418 |
JavaScript | 6 | 35 | 110 | 559 |
SVG | 4 | 0 | 0 | 167 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 103.67 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 210.00 |
Average method complexity | 13.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 76.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 24.00% |
Functions | 87 | |
▷ Named functions | 87 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
66 PNG files occupy 3.23MB with 1.87MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |
bws_menu/css/jquery-ui-styles/1.12.1/images/ui-bg_glass_65_ffffff_1x400.png | 0.26KB | 0.09KB | ▼ 66.79% |
bws_menu/icons/plugins/bike-rental.png | 6.86KB | 2.68KB | ▼ 60.89% |
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |