10% buddypress-courseware-certificate

Code Review | BubbyPress Courseware Certificate

WordPress plugin BubbyPress Courseware Certificate scored10%from 54 tests.

About plugin

  • Plugin page: buddypress-course...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 11, 2012
  • Latest release: Oct 11, 2012
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: sushkov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,980 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/buddypress-courseware-certificate/courseware-certificate.php+153
    Non-static method CoursewareCertificate::init() should not be called statically

Server metrics [RAM: ▼1.93MB] [CPU: ▼56.29ms] Passed 4 tests

A check of server-side resources used by BubbyPress Courseware Certificate
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.395.01 ▼31.88
Dashboard /wp-admin2.09 ▼1.265.75 ▼55.64
Posts /wp-admin/edit.php2.09 ▼1.276.39 ▼41.22
Add New Post /wp-admin/post-new.php2.09 ▼3.805.24 ▼96.42
Media Library /wp-admin/upload.php2.09 ▼1.145.46 ▼27.91

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

Filesystem and database footprint
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
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for BubbyPress Courseware Certificate
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.35 ▲0.061.77 ▼0.2243.27 ▲0.04
Dashboard /wp-admin2,198 ▲215.63 ▼0.0483.72 ▼5.1639.27 ▼5.01
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0338.23 ▼0.9532.64 ▼2.72
Add New Post /wp-admin/post-new.php1,526 ▼123.30 ▲0.13659.49 ▼15.3756.33 ▲0.79
Media Library /wp-admin/upload.php1,403 ▲64.15 ▼0.01103.43 ▲5.9544.90 ▲0.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/buddypress-courseware-certificate/courseware-certificate.php+153
    Non-static method CoursewareCertificate::init() should not be called statically
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-courseware-certificate/courseware-certificate.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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:
  • Tested up to: Invalid version format
  • Requires at least: Invalid version format
You can look at the official readme.txt

buddypress-courseware-certificate/courseware-certificate.php 92% from 13 tests

The primary PHP file in "BubbyPress Courseware Certificate" version 0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("buddypress-courseware-certificate.php" instead of "courseware-certificate.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,379 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
SVG1111,295
PHP1264484

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin