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.03MB] [CPU: ▼7.18ms] Passed 4 tests
This is a short check of server-side resources used by Bump This
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.56 ▲2.29 |
Dashboard /wp-admin | 3.35 ▲0.00 | 47.77 ▼16.20 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.22 ▲1.53 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.13 ▼13.58 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.65 ▼0.48 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_bump_this |
New WordPress options |
---|
bumps_needed |
widget_theysaidso_widget |
bt_db_version |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bump This
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲178 | 13.67 ▼0.70 | 5.96 ▲4.22 | 41.77 ▲2.74 |
Dashboard /wp-admin | 2,221 ▲33 | 5.82 ▼0.16 | 99.38 ▼8.52 | 81.82 ▲39.92 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.01 ▼0.00 | 32.77 ▼3.02 | 34.32 ▲0.25 |
Add New Post /wp-admin/post-new.php | 1,528 ▼15 | 23.14 ▲0.06 | 727.44 ▲127.08 | 60.73 ▲8.71 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.31 ▲0.13 | 100.29 ▲1.68 | 44.23 ▲0.55 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- bumps_needed
- bt_db_version
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/bump-this/bump-this.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (Admin screen2. How button works in front side.)
bump-this/bump-this.php Passed 13 tests
The primary PHP file in "Bump This" version 1.1 is used by WordPress to initiate all plugin functionality
120 characters long description:
"Bump this" is a simple plugin that adds a "bump this" button to all your posts. Users can 'bump' their favorite posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin312 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 95 | 15 | 253 |
CSS | 1 | 9 | 3 | 59 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 4.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1 | |
▷ Static methods | 1 | 100.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
6 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 37.16KB | 18.13KB | ▼ 51.22% |
images/counter3.png | 0.26KB | 0.21KB | ▼ 16.79% |
screenshot-2.png | 20.34KB | 11.68KB | ▼ 42.59% |
images/counter2.png | 0.19KB | 0.12KB | ▼ 35.26% |
images/counter1.png | 0.48KB | 0.38KB | ▼ 20.73% |