Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.54MB] [CPU: ▼30.18ms] Passed 4 tests
This is a short check of server-side resources used by Course
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.80 ▼0.66 | 19.94 ▼23.18 |
Dashboard /wp-admin | 3.23 ▼0.07 | 32.96 ▼31.50 |
Posts /wp-admin/edit.php | 3.16 ▼0.19 | 25.75 ▼24.81 |
Add New Post /wp-admin/post-new.php | 4.63 ▼1.25 | 49.76 ▼41.24 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 36.01 ▲2.39 |
Courses /wp-admin/edit.php?post_type=course | 3.16 | 26.44 |
Add New /wp-admin/post-new.php?post_type=course | 3.41 | 46.87 |
Course Category /wp-admin/edit-tags.php?taxonomy=course-categories&post_type=course | 3.26 | 33.85 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Course
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 13.58 ▼0.65 | 1.96 ▲0.12 | 38.37 ▼4.38 |
Dashboard /wp-admin | 2,237 ▲52 | 5.01 ▼0.80 | 107.96 ▼7.10 | 38.77 ▼11.74 |
Posts /wp-admin/edit.php | 2,120 ▲52 | 2.05 ▲0.05 | 36.93 ▲0.03 | 34.97 ▲1.14 |
Add New Post /wp-admin/post-new.php | 1,559 ▲39 | 23.26 ▲0.18 | 635.71 ▼40.85 | 49.29 ▼11.29 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.22 ▲0.01 | 94.50 ▼15.73 | 44.59 ▼3.92 |
Courses /wp-admin/edit.php?post_type=course | 1,135 | 1.94 | 30.51 | 29.82 |
Add New /wp-admin/post-new.php?post_type=course | 2,706 | 7.72 | 189.59 | 74.19 |
Course Category /wp-admin/edit-tags.php?taxonomy=course-categories&post_type=course | 1,293 | 2.14 | 25.82 | 26.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=course
- > Notice in wp-content/plugins/course/course.php+190
Undefined index: course-categories
SRP 50% 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 fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/course/course.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/course/single-course.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/course/archive-course.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% 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:
- Screenshots: Add images for these screenshots: #1 (Add New Editor), #2 (Custom Fields Meta Boxes)
course/course.php Passed 13 tests
"Course" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
99 characters long description:
Declares a plugin that will create a custom post type displaying courses offered by an institution.
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
There were no executable files found in this plugin276 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 35 | 14 | 276 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 6.94KB | 4.05KB | ▼ 41.63% |
screenshot-1.png | 38.86KB | 19.73KB | ▼ 49.23% |