Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▲0.99ms] Passed 4 tests
Analyzing server-side resources used by WP Scheduled Themes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 45.56 ▲4.26 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.73 ▲2.04 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 51.76 ▲3.50 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 89.62 ▼5.85 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.79 ▲7.22 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 30 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_scheduledthemes |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
scheduledthemes_db_version |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Scheduled Themes
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲33 | 14.12 ▼0.15 | 1.61 ▼0.13 | 47.46 ▲6.75 |
Dashboard /wp-admin | 2,202 ▲22 | 5.62 ▲0.05 | 86.92 ▼4.20 | 41.35 ▼1.03 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.02 | 36.07 ▼2.82 | 29.36 ▼4.82 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 23.04 ▲0.11 | 597.55 ▼23.34 | 52.02 ▼12.99 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.21 ▲0.00 | 102.39 ▼3.31 | 43.00 ▼5.03 |
Scheduled Themes /wp-admin/scheduledThemes.php | 26 | 0.42 | 0.07 | 11.15 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- scheduledthemes_db_version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-scheduled-themes/scheduledThemes.php on line 43
- > PHP Fatal error
Uncaught Error: Call to a member function query() on null in wp-content/plugins/wp-scheduled-themes/uninstall.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-scheduled-themes/scheduledThemes.php:43
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-scheduled-themes/uninstall.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-scheduled-themes/warning.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-scheduled-themes/adminPage.php:3
- > PHP Warning
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)
These are user-side errors you should fix
- > GET request to /wp-admin/scheduledThemes.php
- > Network (severe)
wp-admin/scheduledThemes.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: schedule, holiday, scheduled, theme, cron...
wp-scheduled-themes/scheduledThemes.php 92% from 13 tests
"WP Scheduled Themes" version 1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-scheduled-themes.php" instead of "scheduledThemes.php")
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
There were no executable files found in this plugin2,256 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 94 | 222 | 1,461 |
CSS | 2 | 32 | 60 | 327 |
PHP | 4 | 39 | 97 | 309 |
PO File | 3 | 45 | 45 | 159 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
15 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
css/images/ui-bg_glass_75_d0e5f5_1x400.png | 0.12KB | 0.16KB | 0.00% |
css/images/ui-bg_inset-hard_100_f5f8f9_1x100.png | 0.10KB | 0.13KB | 0.00% |
css/images/ui-icons_469bdd_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png | 3.38KB | 1.68KB | ▼ 50.10% |