Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.08ms] Passed 4 tests
Analyzing server-side resources used by Jih Schedular
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 37.83 ▼1.87 |
Dashboard /wp-admin | 3.36 ▲0.01 | 47.04 ▼9.73 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 50.42 ▲0.05 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 95.44 ▼0.78 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.78 ▲6.88 |
Calendars /wp-admin/admin.php?page=jih-calendars | 3.38 | 32.85 |
Settings /wp-admin/admin.php?page=jih-Settings | 3.22 | 33.35 |
Events /wp-admin/admin.php?page=jih-Events | 3.22 | 31.14 |
Add Calendar /wp-admin/admin.php?page=jih-CalendarForm | 3.66 | 38.71 |
Add Event /wp-admin/admin.php?page=jih-EventForm | 3.22 | 39.02 |
Server storage [IO: ▲1.98MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 256 new files
Database: 2 new tables, 11 new options
New tables |
---|
wp_jih_event |
wp_jih_calendar |
New WordPress options |
---|
widget_theysaidso_widget |
jih-option-Calendar request |
jih-schedular-style |
can_compress_scripts |
widget_recent-posts |
jih-schedular-showCalendar |
jih-option-Calendars |
jih-schedular-plugin-version |
theysaidso_admin_options |
db_upgraded |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Jih Schedular
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,018 ▲272 | 15.07 ▲0.52 | 22.17 ▲20.46 | 47.90 ▲7.69 |
Dashboard /wp-admin | 2,257 ▲66 | 5.28 ▲0.37 | 98.73 ▼1.66 | 35.35 ▼5.77 |
Posts /wp-admin/edit.php | 2,127 ▲35 | 2.53 ▲0.51 | 41.45 ▲1.39 | 35.86 ▼1.08 |
Add New Post /wp-admin/post-new.php | 1,561 ▲42 | 23.29 ▼0.06 | 605.93 ▼21.06 | 28.54 ▼20.57 |
Media Library /wp-admin/upload.php | 1,441 ▲56 | 4.52 ▲0.32 | 98.98 ▲5.09 | 42.26 ▲0.67 |
Calendars /wp-admin/admin.php?page=jih-calendars | 870 | 1.91 | 28.63 | 26.67 |
Settings /wp-admin/admin.php?page=jih-Settings | 965 | 2.12 | 28.33 | 26.22 |
Events /wp-admin/admin.php?page=jih-Events | 879 | 1.93 | 27.25 | 26.46 |
Add Calendar /wp-admin/admin.php?page=jih-CalendarForm | 1,584 | 6.99 | 126.77 | 54.27 |
Add Event /wp-admin/admin.php?page=jih-EventForm | 1,435 | 2.75 | 40.60 | 25.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure failed, leaving 2 tables in the database
- wp_jih_calendar
- wp_jih_event
- Zombie WordPress options detected upon uninstall: 9 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- jih-schedular-showCalendar
- jih-schedular-plugin-version
- widget_recent-posts
- jih-schedular-style
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jih-EventForm
- > Warning in wp-content/plugins/jih-schedular/models/Calendar.php+24
Declaration of models\Calendar::CreateTableQuery() should be compatible with db\AWPModel::CreateTableQuery($columnSql)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jih-EventForm
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- > GET request to /wp-admin/admin.php?page=jih-Events
- > Warning in wp-content/plugins/jih-schedular/models/Event.php+30
Declaration of models\Event::CreateTableQuery() should be compatible with db\AWPModel::CreateTableQuery($columnSql)
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/jih-schedular/recaptcha/example-captcha.php
- > /wp-content/plugins/jih-schedular/recaptcha/example-mailhide.php
- > /wp-content/plugins/jih-schedular/views/default-template.php
- 153× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Twig_NodeInterface' not found in wp-content/plugins/jih-schedular/Twig/Twig/Node.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/jih-schedular/Twig/Twig/Node/Expression/Binary/Or.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Unary' not found in wp-content/plugins/jih-schedular/Twig/Twig/Node/Expression/Unary/Neg.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Filter' not found in wp-content/plugins/jih-schedular/Twig/Twig/Filter/Method.php:20
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/jih-schedular/Twig/Twig/TokenParser/Filter.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/jih-schedular/Twig/Twig/TokenParser/Extends.php:20
- > PHP Fatal error
Uncaught Error: Class 'db\\AWPModel' not found in wp-content/plugins/jih-schedular/models/Calendar.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Twig_TokenParserInterface' not found in wp-content/plugins/jih-schedular/Twig/Twig/TokenParser.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/jih-schedular/Twig/Twig/Node/ForLoop.php:17
- > PHP Fatal error
Uncaught Error: Class 'controllers\\Controller' not found in wp-content/plugins/jih-schedular/controllers/AdminController.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== jih-schedular ===
) - Screenshots: These screenshots do not have images: #1 (Screenshot of the main windows plugin, this is how your schedule looks like), #2 (The plugin works in all types of themes, but the themes should use bootstrap.), #3 (The plugin uses intuitive popups to show forms for people to fill.), #4 (The add event pop-up when not logged in, can only add event with recaptcha (anti bots, spam!))
jih-schedular/jih-schedular.php Passed 13 tests
The main PHP script in "Jih Schedular" version 1.3.0 is automatically included on every request by WordPress
108 characters long description:
A plugin that adds a page where you can show timetables, and people can schedule themselves in these tables.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin31,503 lines of code in 242 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 1,852 | 1,152 | 13,949 |
PHP | 209 | 2,278 | 5,507 | 9,466 |
CSS | 7 | 56 | 55 | 7,098 |
Twig | 10 | 78 | 14 | 661 |
SVG | 1 | 0 | 0 | 229 |
PO File | 1 | 31 | 32 | 73 |
YAML | 1 | 2 | 1 | 27 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 6.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 20 | |
Traits | 0 | |
Classes | 188 | |
▷ Abstract classes | 14 | 7.45% |
▷ Concrete classes | 174 | 92.55% |
▷ Final classes | 0 | 0.00% |
Methods | 917 | |
▷ Static methods | 32 | 3.49% |
▷ Public methods | 819 | 89.31% |
▷ Protected methods | 90 | 9.81% |
▷ Private methods | 8 | 0.87% |
Functions | 61 | |
▷ Named functions | 60 | 98.36% |
▷ Anonymous functions | 1 | 1.64% |
Constants | 43 | |
▷ Global constants | 7 | 16.28% |
▷ Class constants | 36 | 83.72% |
▷ Public constants | 36 | 100.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
4 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 60.73KB | 24.02KB | ▼ 60.45% |
assets/screenshot-1.png | 41.33KB | 18.52KB | ▼ 55.20% |
assets/screenshot-2.png | 60.79KB | 22.85KB | ▼ 62.41% |
assets/screenshot-3.png | 12.28KB | 5.88KB | ▼ 52.16% |