Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲1.37MB] [CPU: ▲9.71ms] Passed 4 tests
A check of server-side resources used by Pagination Styler for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.85 ▲1.39 | 53.79 ▲16.78 |
Dashboard /wp-admin | 4.68 ▲1.34 | 65.44 ▲5.33 |
Posts /wp-admin/edit.php | 4.80 ▲1.44 | 66.18 ▲18.70 |
Add New Post /wp-admin/post-new.php | 7.26 ▲1.38 | 96.85 ▼0.79 |
Media Library /wp-admin/upload.php | 4.61 ▲1.38 | 52.94 ▲17.50 |
Server storage [IO: ▲1.96MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 85 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
br-pagination-options |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
berocket_admin_notices_rate_stars |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Pagination Styler for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.19 ▼0.19 | 2.33 ▲0.66 | 43.51 ▲2.57 |
Dashboard /wp-admin | 2,234 ▲59 | 5.71 ▼0.06 | 83.04 ▼37.06 | 75.08 ▲26.33 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 2.02 ▲0.04 | 38.90 ▲1.45 | 35.19 ▼0.97 |
Add New Post /wp-admin/post-new.php | 1,579 ▲53 | 23.21 ▼0.52 | 733.64 ▲69.68 | 55.55 ▼4.74 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.26 ▲0.09 | 112.93 ▲15.12 | 72.64 ▲26.77 |
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
- This plugin did not uninstall successfully, leaving 8 options in the database
- berocket_admin_notices_rate_stars
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- berocket_key_activated_plugins
Smoke tests 75% 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 21× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pagination-styler-for-woocommerce/berocket/includes/updater.php:5
- > PHP Notice
Undefined variable: name in wp-content/plugins/pagination-styler-for-woocommerce/berocket/templates/conditions.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/pagination-styler-for-woocommerce/templates/style_section.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pagination-styler-for-woocommerce/main.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pagination-styler-for-woocommerce/berocket/includes/information_notices.php:262
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pagination-styler-for-woocommerce/berocket/includes/widget.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/pagination-styler-for-woocommerce/berocket/includes/settings_fields.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pagination-styler-for-woocommerce/berocket/templates/settings_footer.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pagination-styler-for-woocommerce/berocket/includes/error_notices.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pagination-styler-for-woocommerce/berocket/libraries/popup.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (General settings), #2 (Style settings), #3 (Text settings)
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
pagination-styler-for-woocommerce/pagination-styler.php 85% from 13 tests
Analyzing the main PHP file in "Pagination Styler for WooCommerce" version 3.5.7.8
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "5.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pagination-styler-for-woocommerce.php" instead of "pagination-styler.php")
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 detected20,055 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 14 | 2,513 | 76 | 9,477 |
PHP | 35 | 450 | 1,660 | 8,402 |
JavaScript | 6 | 43 | 58 | 1,701 |
PO File | 2 | 194 | 216 | 430 |
XML | 2 | 0 | 0 | 45 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 51.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 240.00 |
Average method complexity | 4.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 341 | |
▷ Static methods | 135 | 39.59% |
▷ Public methods | 341 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
berocket/libraries/templates/default.png | 3.87KB | 2.63KB | ▼ 31.94% |
berocket/assets/images/submenu-icon.png | 0.62KB | 0.50KB | ▼ 20.13% |
berocket/assets/css/mail.png | 2.59KB | 1.92KB | ▼ 26.02% |
berocket/libraries/addons/default.png | 3.87KB | 2.63KB | ▼ 31.94% |
berocket/assets/images/submenu-icon-a.png | 0.54KB | 0.48KB | ▼ 10.20% |