Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼5.57ms] Passed 4 tests
This is a short check of server-side resources used by CyberActive School
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 36.76 ▼5.49 |
Dashboard /wp-admin | 3.56 ▲0.22 | 52.14 ▼12.57 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 52.15 ▼1.89 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 111.78 ▼1.61 |
Media Library /wp-admin/upload.php | 3.48 ▲0.26 | 36.51 ▼2.34 |
Traffic Schools /wp-admin/edit.php?post_type=courseform | 3.58 | 44.95 |
Add New Step /wp-admin/post-new.php?post_type=courseform | 3.55 | 58.62 |
Traffic School /wp-admin/options-general.php?page=traffic-school | 3.51 | 43.23 |
Server storage [IO: ▲1.42MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 99 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for CyberActive School
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲52 | 14.69 ▲0.33 | 2.01 ▲0.02 | 41.07 ▼7.54 |
Dashboard /wp-admin | 2,229 ▲49 | 5.61 ▼0.05 | 91.70 ▲2.92 | 44.81 ▼2.11 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.96 ▼0.03 | 40.72 ▼2.66 | 38.41 ▼1.45 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 22.64 ▼0.33 | 669.14 ▲4.79 | 60.21 ▲9.22 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.19 ▲0.01 | 98.62 ▼10.35 | 45.46 ▼4.29 |
Traffic Schools /wp-admin/edit.php?post_type=courseform | 1,937 | 2.00 | 33.05 | 32.19 |
Add New Step /wp-admin/post-new.php?post_type=courseform | 2,262 | 7.59 | 173.80 | 61.76 |
Traffic School /wp-admin/options-general.php?page=traffic-school | 1,358 | 2.18 | 24.35 | 45.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=traffic-school
- > Notice in wp-content/plugins/cyberactive-dmv-traffic-school/inc/functions.php+11
Trying to access array offset on value of type null
- > GET request to /wp-admin/post-new.php?post_type=courseform
- > Warning in wp-content/plugins/cyberactive-dmv-traffic-school/inc/metaboxes.php+41
count(): Parameter must be an array or an object that implements Countable
SRP 0% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/cyberactive-dmv-traffic-school/trunk/traffic-school.php
- > /wp-content/plugins/cyberactive-dmv-traffic-school/traffic-school.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cyberactive-dmv-traffic-school/trunk/tpls/courses-selection.tpl.php:13
- > PHP Notice
Undefined index: src in wp-content/plugins/cyberactive-dmv-traffic-school/tpls/courses-selection.tpl.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cyberactive-dmv-traffic-school/tpls/courses-selection.tpl.php:13
- > PHP Notice
Undefined index: st in wp-content/plugins/cyberactive-dmv-traffic-school/trunk/tpls/courses-selection.tpl.php on line 4
- > PHP Notice
Undefined index: st in wp-content/plugins/cyberactive-dmv-traffic-school/tpls/courses-selection.tpl.php on line 4
- > PHP Notice
Undefined index: src in wp-content/plugins/cyberactive-dmv-traffic-school/trunk/tpls/courses-selection.tpl.php on line 9
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Contributors: The plugin contributors field is missing
cyberactive-dmv-traffic-school/traffic-school.php 92% from 13 tests
The main PHP file in "CyberActive School" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cyberactive-dmv-traffic-school.php" instead of "traffic-school.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected6,957 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 529 | 416 | 4,503 |
CSS | 4 | 274 | 64 | 1,666 |
JavaScript | 5 | 15 | 43 | 732 |
Markdown | 1 | 20 | 0 | 56 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 100 | |
▷ Named functions | 100 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
19 PNG files occupy 0.27MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/image1.png | 30.29KB | 10.37KB | ▼ 65.76% |
images/discover.png | 0.77KB | 0.79KB | 0.00% |
images/american-express.png | 1.18KB | 1.22KB | 0.00% |
trunk/images/image3.png | 38.96KB | 10.83KB | ▼ 72.21% |
trunk/images/mastercard.png | 1.17KB | 1.21KB | 0.00% |