Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.56ms] Passed 4 tests
Server-side resources used by Courseticket
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 41.03 ▼2.11 |
Dashboard /wp-admin | 3.32 ▼0.02 | 50.94 ▼10.77 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.77 ▼7.91 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 93.66 ▼15.63 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.27 ▼3.93 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Courseticket
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲176 | 13.43 ▼0.72 | 8.53 ▲6.94 | 42.76 ▼0.78 |
Dashboard /wp-admin | 2,201 ▲24 | 5.55 ▼0.04 | 89.46 ▲3.63 | 75.40 ▲36.88 |
Posts /wp-admin/edit.php | 2,115 ▲12 | 1.98 ▲0.03 | 33.78 ▼12.36 | 33.40 ▼7.01 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 23.08 ▼0.13 | 731.41 ▲67.51 | 54.39 ▼2.95 |
Media Library /wp-admin/upload.php | 1,406 ▲9 | 4.22 ▲0.01 | 102.34 ▼23.04 | 69.59 ▲15.25 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/courseticket/courseticket.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/courseticket/templates/ct-overview.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/courseticket/tests/WP_UnitTestCase.php:27
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/courseticket/tests/WP_UnitTestCase.php:27
- > PHP Warning
require_once(CT__PLUGIN_DIRincludes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/courseticket/includes/bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/courseticket/tests/includes/ButtonReplacerTest.php:3
- > PHP Warning
Use of undefined constant CT__PLUGIN_DIR - assumed 'CT__PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/courseticket/includes/bootstrap.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'CT__PLUGIN_DIRincludes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/courseticket/includes/bootstrap.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: courseticket, events
courseticket/courseticket.php Passed 13 tests
The principal PHP file in "Courseticket" v. 0.2 is loaded by WordPress automatically on each request
59 characters long description:
Display and manage courseticket events easily in wordpress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin352 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 78 | 128 | 328 |
XML | 1 | 0 | 0 | 14 |
CSS | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 3.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 13 | 48.15% |
▷ Public methods | 21 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 22.22% |
Functions | 2 | |
▷ Named functions | 2 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/menu-icon.png | 0.40KB | 0.29KB | ▼ 28.88% |
img/button-example.png | 13.03KB | 5.23KB | ▼ 59.82% |