83% bc-crowdox-widget

Code Review | Plugin Name: BC Crowdox widget

WordPress plugin Plugin Name: BC Crowdox widget scored83%from 54 tests.

About plugin

  • Plugin page: bc-crowdox-widget
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.11-5.2.1
  • WordPress version: 6.3.1
  • First release: May 29, 2019
  • Latest release: May 29, 2019
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: beocode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /488 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.61ms] Passed 4 tests

Analyzing server-side resources used by Plugin Name: BC Crowdox widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.98 ▼0.39
Dashboard /wp-admin3.37 ▲0.0358.24 ▼9.91
Posts /wp-admin/edit.php3.49 ▲0.1456.00 ▲3.70
Add New Post /wp-admin/post-new.php5.95 ▲0.0797.40 ▼2.49
Media Library /wp-admin/upload.php3.28 ▲0.0540.17 ▲2.37

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Plugin Name: BC Crowdox widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,022 ▲26114.95 ▲0.385.38 ▲3.6744.52 ▲2.14
Dashboard /wp-admin2,345 ▲1656.34 ▲0.69118.38 ▲16.1039.82 ▼4.03
Posts /wp-admin/edit.php2,273 ▲1733.51 ▲1.4959.98 ▲22.7731.76 ▼4.07
Add New Post /wp-admin/post-new.php1,544 ▲1818.18 ▼5.40622.20 ▼43.0342.93 ▼6.50
Media Library /wp-admin/upload.php1,410 ▲134.21 ▼0.0082.39 ▼22.1842.32 ▼4.03

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_crowdox_project_tracker
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bc-crowdox-widget/crowdox-project-tracker.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === Plugin Name: BC Crowdox widget === )
The official readme.txt might help

bc-crowdox-widget/crowdox-project-tracker.php 77% from 13 tests

The main file in "Plugin Name: BC Crowdox widget" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("bc-crowdox-widget.php" instead of "crowdox-project-tracker.php")
  • Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "4.7.11")

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
No dangerous file extensions were detected225 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP14126153
CSS111038
JavaScript29334

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity6.25
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin