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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 5.01 ▼31.88 |
Dashboard /wp-admin | 2.09 ▼1.26 | 5.75 ▼55.64 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 6.39 ▼41.22 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 5.24 ▼96.42 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 5.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.35 ▲0.06 | 1.77 ▼0.22 | 43.27 ▲0.04 |
Dashboard /wp-admin | 2,198 ▲21 | 5.63 ▼0.04 | 83.72 ▼5.16 | 39.27 ▼5.01 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▲0.03 | 38.23 ▼0.95 | 32.64 ▼2.72 |
Add New Post /wp-admin/post-new.php | 1,526 ▼1 | 23.30 ▲0.13 | 659.49 ▼15.37 | 56.33 ▲0.79 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.15 ▼0.01 | 103.43 ▲5.95 | 44.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 1 | 1 | 1,295 |
PHP | 1 | 26 | 44 | 84 |
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 code | 0.16 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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