Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼1.14MB] [CPU: ▼323.51ms] Passed 4 tests
A check of server-side resources used by EduHack
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.17 | 52.87 ▲1.49 |
Dashboard /wp-admin | 3.19 ▼0.22 | 17.60 ▼14.68 |
Posts /wp-admin/edit.php | 3.19 ▼0.45 | 18.19 ▼19.22 |
Add New Post /wp-admin/post-new.php | 3.19 ▼3.78 | 17.99 ▼1,250.29 |
Media Library /wp-admin/upload.php | 3.19 ▼0.10 | 15.76 ▼9.83 |
Add New Course /wp-admin/admin.php?page=eduhack-add-new-course | 2.96 | 15.96 |
EduHack /wp-admin/admin.php?page=eduhack | 2.96 | 14.66 |
Levels /wp-admin/admin.php?page=eduhack-add-level | 2.96 | 14.64 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for EduHack
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,830 ▲86 | 16.17 ▲0.47 | 5.98 ▲0.06 | 2.58 ▲0.49 |
Dashboard /wp-admin | 2,927 ▲69 | 6.17 ▲0.10 | 120.80 ▼12.40 | 155.24 ▼8.88 |
Posts /wp-admin/edit.php | 2,723 ▲38 | 3.24 ▲0.01 | 62.42 ▲0.26 | 136.38 ▼4.54 |
Add New Post /wp-admin/post-new.php | 1,690 ▲29 | 19.07 ▲3.17 | 418.08 ▼3.47 | 157.45 ▲8.33 |
Media Library /wp-admin/upload.php | 1,732 ▲34 | 5.52 ▲0.04 | 135.53 ▼8.64 | 189.20 ▲3.75 |
Add New Course /wp-admin/admin.php?page=eduhack-add-new-course | 1,088 | 2.37 | 55.14 | 125.82 |
EduHack /wp-admin/admin.php?page=eduhack | 1,015 | 2.41 | 54.40 | 106.47 |
Levels /wp-admin/admin.php?page=eduhack-add-level | 1,204 | 2.42 | 53.02 | 119.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/eduhack/index.php+323
Undefined index: page
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
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eduhack-add-level
- > Notice in wp-content/plugins/eduhack/index.php+39
Undefined index: export
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eduhack-add-new-course
- > Notice in wp-content/plugins/eduhack/admin-course.php+37
Undefined variable: course
- > GET request to /wp-admin/admin.php?page=eduhack-add-new-course
- > Notice in wp-content/plugins/eduhack/admin-course.php+24
Trying to get property 'post_title' of non-object
- > GET request to /wp-admin/admin.php?page=eduhack-add-new-course
- > Notice in wp-content/plugins/eduhack/admin-course.php+37
Trying to get property 'post_excerpt' of non-object
SRP 50% 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 fix the following
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined index: course in wp-content/plugins/eduhack/admin-view-course.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/eduhack/admin-course.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function eduhack_get_courses() in wp-content/plugins/eduhack/admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eduhack/index.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function eduhack_get() in wp-content/plugins/eduhack/admin-module.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/eduhack/admin-view-course.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/eduhack/admin-level.php:12
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
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
These attributes need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
eduhack/index.php 92% from 13 tests
The main PHP script in "EduHack" version 1.1 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("eduhack.php" instead of "index.php")
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
Everything looks great! No dangerous files found in this plugin811 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 261 | 63 | 755 |
JavaScript | 1 | 27 | 10 | 53 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
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 | 33 | |
▷ Named functions | 33 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected