78% plugin-bundles

Code Review | Plugin Bundles

WordPress plugin Plugin Bundles scored78%from 54 tests.

About plugin

  • Plugin page: plugin-bundles
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Nov 27, 2014
  • Latest release: Nov 27, 2014
  • Number of updates: 26
  • Update frequency: N/A
  • Top authors: raisonon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /874 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.79ms] Passed 4 tests

Server-side resources used by Plugin Bundles
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0443.26 ▲5.33
Dashboard /wp-admin3.35 ▼0.0045.90 ▼27.37
Posts /wp-admin/edit.php3.46 ▲0.1046.68 ▲3.10
Add New Post /wp-admin/post-new.php5.93 ▲0.0478.97 ▼8.75
Media Library /wp-admin/upload.php3.27 ▲0.0435.82 ▲1.87
Bundles /wp-admin/plugins.php?page=bundles3.4429.58

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
BNDLS_VERSION_KEY
bndls_settings
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Plugin Bundles
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲14013.58 ▼0.798.36 ▲6.7644.05 ▲3.23
Dashboard /wp-admin2,198 ▲215.56 ▼0.1286.33 ▼0.9837.13 ▼3.13
Posts /wp-admin/edit.php2,106 ▲92.03 ▲0.0939.44 ▲3.0136.64 ▲3.31
Add New Post /wp-admin/post-new.php1,533 ▲523.17 ▲0.31682.47 ▲18.7348.92 ▼15.54
Media Library /wp-admin/upload.php1,406 ▲94.17 ▼0.0396.86 ▼3.2940.45 ▼2.99
Bundles /wp-admin/plugins.php?page=bundles7681.9924.0122.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 8 options
    • BNDLS_VERSION_KEY
    • widget_theysaidso_widget
    • bndls_settings
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/plugins.php?page=bundles
    • > Notice in wp-content/plugins/plugin-bundles/includes/bundles_overview.php+347
    Undefined variable: id
    • > GET request to /wp-admin/plugins.php?page=bundles
    • > Notice in wp-content/plugins/plugin-bundles/includes/bundles_overview.php+347
    Undefined variable: symbol
    • > GET request to /wp-admin/plugins.php?page=bundles
    • > Notice in wp-content/plugins/plugin-bundles/includes/bundles_overview.php+347
    Undefined variable: companyName

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
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_setting() on null in wp-content/plugins/plugin-bundles/includes/settings.php:10
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_setting() on null in wp-content/plugins/plugin-bundles/includes/bundles_overview.php:333
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/plugin-bundles/includes/init.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/plugin-bundles/plugin-bundles.php:18

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: plugin bundle

plugin-bundles/plugin-bundles.php 92% from 13 tests

"Plugin Bundles" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected654 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP5359294480
JSON113095
CSS129177
JavaScript1212

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity9.50
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes150.00%
▷ Concrete classes150.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/wp-pic-sprite.png12.93KB6.24KB▼ 51.75%