84% binbucks

Code Review | Binbucks

WordPress plugin Binbucks scored84%from 54 tests.

About plugin

  • Plugin page: binbucks
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 26, 2017
  • Latest release: Aug 26, 2017
  • Number of updates: 14
  • Update frequency: every 0.2 days
  • Top authors: binbucks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /743 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼11.31ms] Passed 4 tests

Analyzing server-side resources used by Binbucks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0627.86 ▼13.12
Dashboard /wp-admin3.34 ▼0.0149.28 ▼15.18
Posts /wp-admin/edit.php3.39 ▲0.0347.71 ▼5.15
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.15 ▼11.77
Media Library /wp-admin/upload.php3.26 ▲0.0333.45 ▼4.26

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Binbucks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4813.27 ▼1.105.06 ▲3.3044.14 ▲3.44
Dashboard /wp-admin2,195 ▲155.61 ▼0.0888.73 ▼7.6037.48 ▼3.33
Posts /wp-admin/edit.php2,103 ▼02.03 ▲0.0437.28 ▼2.3930.49 ▼3.67
Add New Post /wp-admin/post-new.php1,526 ▼023.24 ▼0.22595.94 ▼82.7749.24 ▼6.89
Media Library /wp-admin/upload.php1,400 ▼04.28 ▲0.0495.59 ▼12.6943.97 ▼3.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/binbucks/binbucks.php:133

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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: No descriptions were found for these screenshots #1, #2 in binbucks/assets to your readme.txt
The official readme.txt might help

binbucks/binbucks.php Passed 13 tests

The principal PHP file in "Binbucks" v. 1.0 is loaded by WordPress automatically on each request
106 characters long description:
Shrink Your Links And Earn Money With Binbucks Url Shortener. This Tools Generate Mass Paid Links For You.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin115 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1157114
JavaScript1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin