Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼12.89ms] Passed 4 tests
This is a short check of server-side resources used by EduKit Assessed Posts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▼0.54 | 16.25 ▼25.40 |
Dashboard /wp-admin | 3.45 ▲0.15 | 48.50 ▼2.45 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 47.71 ▲0.53 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 83.21 ▼21.46 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 36.57 ▼2.23 |
All Assessments /wp-admin/edit.php?post_type=ek_assessed_posts | 3.41 | 36.73 |
/wp-admin/admin.php?page=ek-assessed-posts-list | 3.34 | 28.22 |
Create Assessment /wp-admin/post-new.php?post_type=ek_assessed_posts | 3.49 | 47.58 |
Server storage [IO: ▲20.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 232 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by EduKit Assessed Posts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,507 ▼228 | 13.53 ▼1.22 | 0.54 ▼1.37 | 19.56 ▼22.81 |
Dashboard /wp-admin | 2,257 ▲69 | 5.31 ▲0.41 | 118.06 ▲3.08 | 41.92 ▼4.55 |
Posts /wp-admin/edit.php | 2,151 ▲62 | 2.42 ▲0.37 | 39.55 ▲2.17 | 31.92 ▲1.82 |
Add New Post /wp-admin/post-new.php | 1,566 ▼102 | 23.23 ▲1.28 | 629.33 ▼1.38 | 71.77 ▲6.23 |
Media Library /wp-admin/upload.php | 1,447 ▲56 | 4.46 ▲0.24 | 98.66 ▲0.38 | 44.91 ▲2.22 |
All Assessments /wp-admin/edit.php?post_type=ek_assessed_posts | 1,142 | 2.40 | 34.38 | 27.25 |
/wp-admin/admin.php?page=ek-assessed-posts-list | 697 | 1.67 | 9.91 | 18.73 |
Create Assessment /wp-admin/post-new.php?post_type=ek_assessed_posts | 2,566 | 8.04 | 172.46 | 64.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- 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 everything seems fine, this is not 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/edukit-assessed-posts/tcpdf/tools/tcpdf_addfont.php
- 5× 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/edukit-assessed-posts/classes/class-cpts.php:23
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/edukit-assessed-posts/tcpdf/tcpdf.php on line 17770
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/edukit-assessed-posts/functions.php:29
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/edukit-assessed-posts/tcpdf/tcpdf.php on line 17770
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/edukit-assessed-posts/edukit-assessed-posts.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
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
1 plugin tags: plugin
edukit-assessed-posts/edukit-assessed-posts.php Passed 13 tests
The main PHP script in "EduKit Assessed Posts" version 0.1 is automatically included on every request by WordPress
61 characters long description:
Create assessments for students to submit blog posts against.
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected47,781 lines of code in 108 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 106 | 1,909 | 12,141 | 47,668 |
CSS | 1 | 26 | 1 | 73 |
JSON | 1 | 0 | 0 | 40 |
PHP code 0% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 4,296)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 496)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 337.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,296.00 |
Average method complexity | 10.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 496.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 731 | |
▷ Static methods | 116 | 15.87% |
▷ Public methods | 454 | 62.11% |
▷ Protected methods | 277 | 37.89% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 106 | |
▷ Global constants | 106 | 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
No PNG images were found in this plugin