Benchmarks
Plugin footprint 30% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.75ms] Passed 4 tests
Server-side resources used by Weekly Schedule
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.79 ▲2.06 |
Dashboard /wp-admin | 3.33 ▼0.02 | 44.22 ▼16.94 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.23 ▲1.10 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 79.82 ▼11.36 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.96 ▲0.22 |
General Options /wp-admin/admin.php?page=weekly-schedule | 3.21 | 33.93 |
Stylesheet /wp-admin/admin.php?page=weekly-schedule-stylesheet | 3.93 | 45.09 |
Server storage [IO: ▲0.60MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: 2 new tables, 11 new options
New tables |
---|
wp_wsdays |
wp_wscategories |
New WordPress options |
---|
WS_PP2 |
WS_PP1 |
widget_recent-posts |
WS_PP |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
WeeklyScheduleGeneral |
widget_weekly_schedule_widget |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Weekly Schedule
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 14.37 ▲0.01 | 1.66 ▲0.21 | 48.21 ▲7.98 |
Dashboard /wp-admin | 2,221 ▲44 | 5.77 ▲0.24 | 81.76 ▼8.27 | 81.57 ▲41.07 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 1.97 ▲0.03 | 38.43 ▲4.18 | 33.25 ▼5.74 |
Add New Post /wp-admin/post-new.php | 1,702 ▲174 | 22.31 ▼1.04 | 677.09 ▲1.85 | 52.70 ▲3.25 |
Media Library /wp-admin/upload.php | 1,423 ▲29 | 4.07 ▼0.07 | 107.67 ▼0.18 | 79.84 ▲32.31 |
General Options /wp-admin/admin.php?page=weekly-schedule | 2,018 | 2.13 | 26.03 | 31.60 |
Stylesheet /wp-admin/admin.php?page=weekly-schedule-stylesheet | 1,324 | 3.76 | 83.90 | 40.22 |
Uninstaller [IO: ▲0.60MB] [DB: ▲0.01MB] 0% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following itemsZombie tables were found after uninstall: 2 tables This plugin does not fully uninstall, leaving 12 options in the database
- Uninstall procedure validation failed for this plugin
- > Error in wp-content/plugins/weekly-schedule/uninstall.php+8
Cannot redeclare ws_db_prefix() (previously declared in wp-content/plugins/weekly-schedule/weekly-schedule.php:122)
- Incomplete uninstall procedure, leaving 25 files (0.60MB) in the plugin directory
- (new file) icons/calendar-icon-16.png
- (new file) jquery-qtip/jquery.qtip.min.js
- (new file) jquery-qtip/LICENSE
- (new file) float-thead/jquery.floatThead.min.js
- (new file) jquery-qtip/imagesloaded.pkg.min.js
- (new file) icons/btn_donate_LG.gif
- (new file) icons/calendar-icon-32.png
- (new file) importtemplate.csv
- (new file) jquery-qtip/jquery.qtip.min.css
- (new file) icons/delete.png
- ...
- wp_wsdays
- wp_wscategories
- WS_PP1
- theysaidso_admin_options
- WS_PP
- widget_weekly_schedule_widget
- WeeklyScheduleGeneral
- widget_theysaidso_widget
- WS_PP2
- recovery_mode_email_last_sent
- widget_recent-comments
- db_upgraded
- ...
Smoke tests 50% 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 | 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 take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/weekly-schedule/weekly-schedule.php:39
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=weekly-schedule
- > Network (severe)
wp-admin/images/gray-grad.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (A sample schedule created with Weekly Schedule), #2 (General Plugin Configuration), #3 (Manage and add items to the schedule)
weekly-schedule/weekly-schedule.php Passed 13 tests
The main file in "Weekly Schedule" v. 3.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
60 characters long description:
Simplify the management and display of online schedule grids
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin5,176 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 778 | 1,143 | 4,648 |
PO File | 1 | 151 | 156 | 376 |
CSS | 2 | 6 | 1 | 147 |
JavaScript | 3 | 1 | 19 | 5 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 188)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 175.40 |
▷ Minimum class complexity | 52.00 |
▷ Maximum class complexity | 286.00 |
Average method complexity | 11.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 188.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 86 | |
▷ Static methods | 1 | 1.16% |
▷ Public methods | 86 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 18 | 94.74% |
▷ Anonymous functions | 1 | 5.26% |
Constants | 10 | |
▷ Global constants | 10 | 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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/delete.png | 0.70KB | 0.72KB | 0.00% |
icons/calendar-icon-32.png | 2.85KB | 1.82KB | ▼ 36.10% |
icons/calendar-icon-16.png | 0.98KB | 1.21KB | 0.00% |