Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼0.95ms] Passed 4 tests
Analyzing server-side resources used by PAC Weekly Timetable
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 46.86 ▲3.71 |
Dashboard /wp-admin | 3.51 ▲0.21 | 54.55 ▼1.46 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 52.83 ▲1.99 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 88.24 ▼8.02 |
Media Library /wp-admin/upload.php | 3.43 ▲0.21 | 39.00 ▲4.32 |
All Activities /wp-admin/admin.php?page=pacwtt-settings-all-activities | 3.41 | 35.88 |
PACWTT /wp-admin/admin.php?page=pacwtt-main | 3.40 | 32.57 |
Add New /wp-admin/admin.php?page=pacwtt-settings-new-activities | 3.40 | 34.03 |
Options /wp-admin/admin.php?page=pacwtt-settings-options | 3.40 | 30.48 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_pacwtt_activity |
wp_pacwtt_interval |
New WordPress options |
---|
pacwtt_db_version |
pacwtt_option_css |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
pacwtt_option_layout |
can_compress_scripts |
pacwtt_option_monday |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PAC Weekly Timetable
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲89 | 13.26 ▼1.17 | 2.29 ▲0.16 | 42.22 ▼3.59 |
Dashboard /wp-admin | 2,241 ▲53 | 4.85 ▼1.01 | 117.66 ▼0.57 | 43.01 ▼0.00 |
Posts /wp-admin/edit.php | 2,127 ▲41 | 2.02 ▲0.04 | 38.93 ▲0.21 | 32.38 ▼0.42 |
Add New Post /wp-admin/post-new.php | 1,565 ▲32 | 23.40 ▲0.58 | 656.53 ▼10.24 | 58.19 ▲9.22 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.20 ▲0.00 | 95.99 ▼9.05 | 41.93 ▼8.64 |
All Activities /wp-admin/admin.php?page=pacwtt-settings-all-activities | 1,035 | 1.76 | 24.27 | 28.87 |
PACWTT /wp-admin/admin.php?page=pacwtt-main | 803 | 2.18 | 23.94 | 28.36 |
Add New /wp-admin/admin.php?page=pacwtt-settings-new-activities | 845 | 2.18 | 27.40 | 39.15 |
Options /wp-admin/admin.php?page=pacwtt-settings-options | 899 | 2.07 | 25.95 | 34.72 |
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
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% 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
Please fix the following
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pac-weekly-timetable/pac-weekly-timetable.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pac-weekly-timetable/includes/class-pacwtt-model-interval.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pac-weekly-timetable/includes/class-pacwtt-model-activity.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pac-weekly-timetable/includes/shortcodes.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pac-weekly-timetable/includes/scripts.php:17
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/pac-weekly-timetable/includes/class-pacwtt-activity-list-table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pac-weekly-timetable/css/tables.php:11
- > PHP Notice
Trying to get property 'is_404' of non-object in wp-content/plugins/pac-weekly-timetable/css/tables.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pac-weekly-timetable/includes/class-pacwtt-activity-list-table.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/pac-weekly-timetable/includes/class-pacwtt-activity-list-table.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Create a new activity from the plugin's menu page **Add New**), #2 (To manage an activity go to **All Activities** menu page and click on the activity name to manage it's intervals), #3 (Add a new interval or delete existing ones), #4 (Show a timetable using the [pacwtt] shortcode)
pac-weekly-timetable/pac-weekly-timetable.php 92% from 13 tests
This is the main PHP file of "PAC Weekly Timetable" version 0.7.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected1,399 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 271 | 321 | 1,009 |
PO File | 1 | 79 | 92 | 202 |
JavaScript | 1 | 27 | 22 | 116 |
CSS | 1 | 17 | 23 | 72 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
No PNG images were found in this plugin