Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/tdd-progress-bar/tdd-progress-bar.php+52
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.68MB] [CPU: ▼44.74ms] Passed 4 tests
This is a short check of server-side resources used by TDD Progress Bar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.30 ▼1.16 | 9.22 ▼29.31 |
Dashboard /wp-admin | 2.32 ▼0.98 | 11.85 ▼34.24 |
Posts /wp-admin/edit.php | 2.32 ▼1.03 | 10.62 ▼34.77 |
Add New Post /wp-admin/post-new.php | 2.32 ▼3.56 | 12.07 ▼80.64 |
Media Library /wp-admin/upload.php | 2.32 ▼0.91 | 10.85 ▼21.35 |
Progress Bars /wp-admin/edit.php?post_type=tdd_pb | 2.32 | 11.79 |
Add New Progress Bar /wp-admin/post-new.php?post_type=tdd_pb | 2.32 | 12.12 |
Settings /wp-admin/edit.php?post_type=tdd_pb&page=settings | 2.32 | 10.94 |
Server storage [IO: ▲1.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
tdd_pb_options |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_tdd_progress_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for TDD Progress Bar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲153 | 13.53 ▼1.02 | 8.32 ▲6.41 | 43.44 ▲4.12 |
Dashboard /wp-admin | 2,233 ▲59 | 5.64 ▲0.03 | 91.02 ▲3.35 | 38.05 ▼2.56 |
Posts /wp-admin/edit.php | 2,135 ▲38 | 2.02 ▲0.01 | 38.84 ▲1.80 | 37.22 ▲0.96 |
Add New Post /wp-admin/post-new.php | 1,565 ▲38 | 18.19 ▼4.97 | 606.61 ▼68.33 | 49.04 ▼0.32 |
Media Library /wp-admin/upload.php | 1,429 ▲32 | 4.41 ▲0.20 | 100.85 ▼5.18 | 41.23 ▼3.72 |
Progress Bars /wp-admin/edit.php?post_type=tdd_pb | 1,118 | 1.92 | 32.56 | 31.23 |
Add New Progress Bar /wp-admin/post-new.php?post_type=tdd_pb | 1,661 | 2.53 | 50.75 | 57.20 |
Settings /wp-admin/edit.php?post_type=tdd_pb&page=settings | 926 | 2.05 | 25.91 | 30.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in TDD_Progress_Widget is deprecated since version 4.3.0! Use __construct() instead.
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_tdd_progress_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=tdd_pb&page=settings
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in TDD_Progress_Widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/edit.php?post_type=tdd_pb&page=settings
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/edit.php?post_type=tdd_pb&page=settings
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/edit.php?post_type=tdd_pb&page=settings
- > Warning in wp-admin/includes/template.php+1824
call_user_func() expects parameter 1 to be a valid callback, class 'TDD_PB_Admin_Settings' does not have a method 'setting_css'
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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tdd-progress-bar/tdd-progress-bar.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/tdd-progress-bar/inc/admin.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tdd-progress-bar/inc/widget.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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 (A Progress Bar "race"), #2 (Progress Bar management page showing all the colors available), #3 (A solo Progress Bar), #4 (Bar Options)
tdd-progress-bar/tdd-progress-bar.php Passed 13 tests
The principal PHP file in "TDD Progress Bar" v. 0.5.2 is loaded by WordPress automatically on each request
32 characters long description:
Manage and display progress bars
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected7,361 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 3 | 77 | 0 | 2,717 |
JavaScript | 8 | 314 | 134 | 2,201 |
CoffeeScript | 4 | 279 | 12 | 1,021 |
PHP | 4 | 160 | 178 | 689 |
CSS | 5 | 37 | 16 | 541 |
Markdown | 3 | 51 | 0 | 89 |
PO File | 1 | 35 | 35 | 85 |
JSON | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.70MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/chosen/chosen/chosen-sprite.png | 0.55KB | 0.70KB | 0.00% |
images/bars_overlay.png | 38.23KB | 20.68KB | ▼ 45.91% |
js/miniColors/images/gradient.png | 10.11KB | 8.24KB | ▼ 18.50% |
screenshot-1.png | 30.17KB | 8.66KB | ▼ 71.30% |
screenshot-4.png | 69.02KB | 19.93KB | ▼ 71.13% |