72% bigideas

Code Review | BigIdeas

WordPress plugin BigIdeas scored72%from 54 tests.

About plugin

  • Plugin page: bigideas
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2
  • WordPress version: 6.3.1
  • First release: Jul 6, 2019
  • Latest release: Jul 29, 2019
  • Number of updates: 13
  • Update frequency: every 2.0 days
  • Top authors: whatsthebigidea (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /801 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.56MB] [CPU: ▼0.80ms] Passed 4 tests

A check of server-side resources used by BigIdeas
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.04 ▲0.5741.92 ▲4.16
Dashboard /wp-admin3.89 ▲0.5456.15 ▼2.58
Posts /wp-admin/edit.php3.94 ▲0.5851.87 ▲5.34
Add New Post /wp-admin/post-new.php6.49 ▲0.5991.80 ▼10.13
Media Library /wp-admin/upload.php3.81 ▲0.5740.24 ▲6.55
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins3.8139.63
Ideas /wp-admin/options-general.php?page=ideas3.6937.67

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 124 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
category_children
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for BigIdeas
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲16813.36 ▼1.297.84 ▲5.9043.71 ▲3.37
Dashboard /wp-admin2,245 ▲685.55 ▼0.0485.80 ▼0.6242.59 ▲3.81
Posts /wp-admin/edit.php2,177 ▲772.15 ▲0.1535.64 ▲1.2537.49 ▲1.37
Add New Post /wp-admin/post-new.php1,571 ▲4223.23 ▼0.48689.00 ▲57.3854.84 ▲2.83
Media Library /wp-admin/upload.php1,455 ▲524.33 ▲0.2096.34 ▼6.2548.34 ▲3.08
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins1,0812.0229.3033.13
Ideas /wp-admin/options-general.php?page=ideas8962.0625.0831.31

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • category_children
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ideas
    • > Notice in wp-content/plugins/bigideas/ideas.php+691
    Trying to access array offset on value of type bool
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ideas
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 0% 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 take a closer look at the following
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/bigideas/trunk/public/partials/ideas-public-display.php
    • > /wp-content/plugins/bigideas/trunk/admin/partials/ideas-admin-display.php
    • > /wp-content/plugins/bigideas/admin/partials/ideas-admin-display.php
    • > /wp-content/plugins/bigideas/public/partials/ideas-public-display.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/bigideas/trunk/class-tgm-plugin-activation.php:2109
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/bigideas/trunk/templates/template-ideas-virtual-page.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/bigideas/class-tgm-plugin-activation.php:2109
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/bigideas/templates/template-ideas-virtual-page.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% 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 need to be fixed:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt is a good inspiration

bigideas/ideas.php 85% from 13 tests

This is the main PHP file of "BigIdeas" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 151 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("bigideas.php" instead of "ideas.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected7,317 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PO File171,4491,9934,842
PHP147632,3392,429
JavaScript355434
CSS35912

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity23.47
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity3.61
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes30
▷ Abstract classes00.00%
▷ Concrete classes30100.00%
▷ Final classes00.00%
Methods258
▷ Static methods145.43%
▷ Public methods20278.29%
▷ Protected methods4617.83%
▷ Private methods103.88%
Functions60
▷ Named functions60100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants225.00%
▷ Class constants675.00%
▷ Public constants6100.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
No PNG images were found in this plugin