68% sexbundle

Code Review | SexBundle

WordPress plugin SexBundle scored68%from 54 tests.

About plugin

  • Plugin page: sexbundle
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Sep 30, 2014
  • Latest release: Mar 26, 2016
  • Number of updates: 17
  • Update frequency: every 35.1 days
  • Top authors: razvypp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,043 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.12MB] [CPU: ▼14.31ms] Passed 4 tests

Server-side resources used by SexBundle
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0747.30 ▲6.44
Dashboard /wp-admin3.26 ▼0.0935.70 ▼29.52
Posts /wp-admin/edit.php3.33 ▼0.0344.55 ▼5.91
Add New Post /wp-admin/post-new.php5.51 ▼0.3877.55 ▼21.18
Media Library /wp-admin/upload.php3.27 ▲0.0334.65 ▼0.64
SexBundle.com /wp-admin/admin.php?page=sexbundle3.2433.71
Statistics /wp-admin/admin.php?page=sexbundle-statistics3.2435.18

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: 1 new table, 9 new options
New tables
wp_sexbundle_connections
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
sb_message
widget_recent-comments
sb_atc_settings
can_compress_scripts
sb_current_version
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for SexBundle
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲9114.40 ▼0.131.88 ▲0.2134.26 ▼10.62
Dashboard /wp-admin2,258 ▲845.77 ▲0.1686.91 ▼8.8589.24 ▲49.01
Posts /wp-admin/edit.php2,180 ▲802.55 ▲0.6138.10 ▼12.9638.79 ▼2.80
Add New Post /wp-admin/post-new.php1,587 ▲6123.02 ▼0.12740.72 ▲62.9150.48 ▼7.90
Media Library /wp-admin/upload.php1,463 ▲604.36 ▲0.15100.63 ▲3.5678.06 ▲34.90
SexBundle.com /wp-admin/admin.php?page=sexbundle8671.8524.3431.17
Statistics /wp-admin/admin.php?page=sexbundle-statistics8161.8528.9128.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_sexbundle_connections
  • This plugin does not fully uninstall, leaving 8 options in the database
    • can_compress_scripts
    • sb_message
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • sb_current_version
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sexbundle-statistics
    • > Notice in wp-content/plugins/sexbundle/sexbundle.php+60
    Undefined variable: answer
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sexbundle-statistics
    • > Notice in wp-content/plugins/sexbundle/sexbundle.php+60
    Trying to get property 'message' of non-object

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
Please fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sexbundle/tabs/statistics.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sexbundle/tabs/main.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sexbundle/sexbundle.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

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
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === sexbundle === )
The official readme.txt is a good inspiration

sexbundle/sexbundle.php Passed 13 tests

The main PHP script in "SexBundle" version 1.4 is automatically included on every request by WordPress
31 characters long description:
SexBundle.Com Management plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin6,892 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript99987374,970
Markdown103280902
PHP339427692
HTML6390298
JSON20030

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions23
▷ Named functions23100.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
close.png1.68KB1.04KB▼ 37.89%
transparent_bg.png0.90KB0.09KB▼ 89.71%
correct.png2.62KB1.37KB▼ 47.50%
icon.png1.60KB0.75KB▼ 52.93%