Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.79ms] Passed 4 tests
A check of server-side resources used by WP Scheduled Styles
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 43.27 ▲1.43 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.07 ▼0.21 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 52.83 ▲5.25 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.85 ▼5.04 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.62 ▲0.64 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 23 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_scheduledstyles |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
scheduledstyles_db_version |
Browser metrics Passed 4 tests
WP Scheduled Styles: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.15 ▼1.53 | 1.75 ▼0.00 | 43.39 ▲4.10 |
Dashboard /wp-admin | 2,210 ▲22 | 5.81 ▲0.81 | 100.88 ▼19.70 | 38.44 ▼6.79 |
Posts /wp-admin/edit.php | 2,090 ▲4 | 2.06 ▲0.06 | 35.15 ▲2.71 | 30.96 ▼2.00 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.17 ▲0.09 | 664.50 ▲1.18 | 55.74 ▲7.52 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.20 ▲0.01 | 93.71 ▼7.22 | 41.70 ▼1.09 |
Scheduled Styles /wp-admin/scheduledStyles.php | 26 | 0.44 | 0.11 | 12.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- scheduledstyles_db_version
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-scheduled-styles/scheduledStyles.php:40
- > 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-styles/scheduledStyles.php on line 40
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-scheduled-styles/adminPage.php:8
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-scheduled-styles/uninstall.php on line 6
- > PHP Fatal error
Uncaught Error: Call to a member function query() on null in wp-content/plugins/wp-scheduled-styles/uninstall.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/scheduledStyles.php
- > Network (severe)
wp-admin/scheduledStyles.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
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: plugin, scheduled, cron, style, cronjob...
wp-scheduled-styles/scheduledStyles.php 92% from 13 tests
The main PHP file in "WP Scheduled Styles" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-scheduled-styles.php" instead of "scheduledStyles.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin587 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 32 | 60 | 326 |
PHP | 3 | 30 | 68 | 232 |
JavaScript | 2 | 7 | 14 | 29 |
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.26 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.25 |
▷ 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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
15 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/ui-icons_f9bd01_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png | 3.38KB | 1.68KB | ▼ 50.10% |
css/images/ui-icons_217bc0_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/ui-bg_inset-hard_100_f5f8f9_1x100.png | 0.10KB | 0.13KB | 0.00% |