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
You still need to fix the following installer errors
- The plugin cannot be installed
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Server metrics [RAM: ▼1.80MB] [CPU: ▼53.05ms] Passed 4 tests
Analyzing server-side resources used by Superfero Online Courses
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.28 | 5.00 ▼37.19 |
Dashboard /wp-admin | 2.20 ▼1.10 | 7.01 ▼39.92 |
Posts /wp-admin/edit.php | 2.20 ▼1.15 | 6.71 ▼41.26 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.68 | 7.22 ▼93.81 |
Media Library /wp-admin/upload.php | 2.20 ▼1.03 | 7.16 ▼26.92 |
Superfero Settings /wp-admin/options-general.php?page=superfero_settings | 2.20 | 7.15 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 10 new options
New WordPress options |
---|
sf_page_name |
widget_recent-comments |
sf_version |
db_upgraded |
sf_page_id |
sf_page_title |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Superfero Online Courses: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.65 ▼0.78 | 1.75 ▼0.51 | 43.79 ▼1.15 |
Dashboard /wp-admin | 2,210 ▲22 | 5.88 ▼0.02 | 104.78 ▼2.42 | 41.14 ▼6.40 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.03 ▼0.03 | 40.37 ▼1.32 | 33.28 ▼2.96 |
Add New Post /wp-admin/post-new.php | 1,526 ▼7 | 23.45 ▲0.19 | 624.84 ▼57.98 | 53.07 ▼1.92 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.16 ▼0.09 | 98.20 ▼9.24 | 44.51 ▼2.71 |
Superfero Settings /wp-admin/options-general.php?page=superfero_settings | 796 | 2.06 | 24.10 | 26.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- sf_version
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=superfero_settings
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- > GET request to /wp-admin/options-general.php?page=superfero_settings
- > Notice in wp-content/plugins/superfero-online-courses/includes/class-superfero-settings.php+131
Undefined index: title
- > GET request to /wp-admin/options-general.php?page=superfero_settings
- > Notice in wp-content/plugins/superfero-online-courses/includes/class-superfero-settings.php+146
Undefined index: label
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=superfero_settings
- > Notice in wp-content/plugins/superfero-online-courses/includes/class-superfero-settings.php+241
Undefined index: description
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test
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 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The 1st screenshot: Settings on the sidebar), #2 (The 2nd screenshot: Settings -> Superfero Settings), #3 (The 3rh screenshot: 'Superfero Courses' in All Page listing), #4 (The 4th screenshot: Edit the page title, the default page name is Superfero Courses)
- Donate link: Please fix this invalid URI: ""
superfero-online-courses/superfero.php 92% from 13 tests
The entry point to "Superfero Online Courses" version 2.2 is a PHP file that has certain tags in its header comment area
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 ("superfero-online-courses.php" instead of "superfero.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin593 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 115 | 258 | 382 |
JavaScript | 1 | 18 | 2 | 121 |
CSS | 1 | 12 | 0 | 90 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 28 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 12.50% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
4 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 19.46KB | 5.04KB | ▼ 74.09% |
screenshot-3.png | 38.28KB | 11.58KB | ▼ 69.75% |
screenshot-1.png | 15.29KB | 3.86KB | ▼ 74.78% |
screenshot-4.png | 14.03KB | 3.45KB | ▼ 75.38% |