84% bump-this

Code Review | Bump This

WordPress plugin Bump This scored84%from 54 tests.

About plugin

  • Plugin page: bump-this
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 15, 2014
  • Latest release: Mar 26, 2014
  • Number of updates: 19
  • Update frequency: every 0.7 days
  • Top authors: outlawgt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,276 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.56 ▲2.29
Dashboard /wp-admin3.35 ▲0.0047.77 ▼16.20
Posts /wp-admin/edit.php3.40 ▲0.0445.22 ▲1.53
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.13 ▼13.58
Media Library /wp-admin/upload.php3.27 ▲0.0434.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲17813.67 ▼0.705.96 ▲4.2241.77 ▲2.74
Dashboard /wp-admin2,221 ▲335.82 ▼0.1699.38 ▼8.5281.82 ▲39.92
Posts /wp-admin/edit.php2,104 ▲152.01 ▼0.0032.77 ▼3.0234.32 ▲0.25
Add New Post /wp-admin/post-new.php1,528 ▼1523.14 ▲0.06727.44 ▲127.0860.73 ▲8.71
Media Library /wp-admin/upload.php1,403 ▲124.31 ▲0.13100.29 ▲1.6844.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

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.)
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP19515253
CSS19359

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 code0.18
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity4.00
▷ Minimum method complexity4.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods1100.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-1.png37.16KB18.13KB▼ 51.22%
images/counter3.png0.26KB0.21KB▼ 16.79%
screenshot-2.png20.34KB11.68KB▼ 42.59%
images/counter2.png0.19KB0.12KB▼ 35.26%
images/counter1.png0.48KB0.38KB▼ 20.73%