Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.88MB] [CPU: ▼38.34ms] Passed 4 tests
Server-side resources used by WPB Circliful
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.08 ▼0.38 | 14.59 ▼26.25 |
Dashboard /wp-admin | 3.13 ▼0.17 | 18.84 ▼31.32 |
Posts /wp-admin/edit.php | 3.13 ▼0.22 | 20.02 ▼26.18 |
Add New Post /wp-admin/post-new.php | 3.13 ▼2.75 | 20.40 ▼69.62 |
Media Library /wp-admin/upload.php | 3.13 ▼0.10 | 19.10 ▼16.48 |
Add New /wp-admin/post-new.php?post_type=circliful | 3.13 | 19.13 |
All Circliful /wp-admin/edit.php?post_type=circliful | 3.13 | 23.28 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WPB Circliful
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,094 ▲359 | 15.13 ▲0.52 | 5.54 ▲3.83 | 39.11 ▼5.18 |
Dashboard /wp-admin | 2,379 ▲194 | 6.42 ▲0.52 | 131.91 ▲14.94 | 39.22 ▼7.92 |
Posts /wp-admin/edit.php | 2,279 ▲190 | 3.53 ▲1.52 | 55.79 ▲19.77 | 35.64 ▼0.15 |
Add New Post /wp-admin/post-new.php | 1,572 ▲52 | 23.16 ▲0.07 | 661.51 ▼49.76 | 36.67 ▼22.20 |
Media Library /wp-admin/upload.php | 1,424 ▲36 | 4.12 ▼0.09 | 81.86 ▼21.49 | 41.36 ▼2.55 |
Add New /wp-admin/post-new.php?post_type=circliful | 1,892 | 4.30 | 99.34 | 42.29 |
All Circliful /wp-admin/edit.php?post_type=circliful | 1,252 | 3.26 | 46.00 | 27.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/wpb-circliful/lib/init.php+746
count(): Parameter must be an array or an object that implements Countable
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=circliful
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/wpb-circliful/lib/init.php+746
count(): Parameter must be an array or an object that implements Countable
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wpb-circliful/lib/tests/phpunit/includes/bootstrap.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpb-circliful/wpb_metaboxes.php:66
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wpb-circliful/lib/tests/phpunit/tests/CMB_Core_Test.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wpb-circliful/lib/init.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpb-circliful/main.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpb-circliful/lib/example-functions.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Donate link: Please fix this invalid URI: ""
wpb-circliful/main.php 85% from 13 tests
The main PHP script in "WPB Circliful" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wpb-circliful.php" instead of "main.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 233 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin5,814 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 312 | 403 | 2,247 |
PHP | 11 | 554 | 1,090 | 2,169 |
CSS | 5 | 66 | 26 | 570 |
SVG | 1 | 0 | 0 | 414 |
Markdown | 3 | 89 | 0 | 289 |
Bourne Shell | 1 | 15 | 4 | 59 |
JSON | 1 | 0 | 0 | 31 |
YAML | 1 | 5 | 0 | 18 |
XML | 1 | 0 | 1 | 17 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 57.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 3.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 134 | |
▷ Static methods | 34 | 25.37% |
▷ Public methods | 132 | 98.51% |
▷ Protected methods | 2 | 1.49% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
15 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
lib/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
lib/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
lib/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |