Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼345.44ms] Passed 4 tests
Server-side resources used by Advanced Schedule Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.06 | 55.75 ▲5.93 |
Dashboard /wp-admin | 3.49 ▲0.08 | 36.18 ▼0.75 |
Posts /wp-admin/edit.php | 3.71 ▲0.07 | 40.07 ▼17.53 |
Add New Post /wp-admin/post-new.php | 6.96 ▼0.01 | 108.09 ▼1,354.36 |
Media Library /wp-admin/upload.php | 3.37 ▲0.08 | 24.36 ▼9.12 |
List /wp-admin/admin.php?page=hasp-list | 3.42 | 25.75 |
Settings /wp-admin/admin.php?page=hasp-settings | 3.39 | 26.44 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Advanced Schedule Posts: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,838 ▲94 | 16.12 ▲0.42 | 6.16 ▲0.18 | 2.07 ▼0.12 |
Dashboard /wp-admin | 2,943 ▲85 | 6.69 ▲0.36 | 118.48 ▼17.62 | 164.33 ▼0.39 |
Posts /wp-admin/edit.php | 2,767 ▲73 | 3.30 ▲0.06 | 65.88 ▼2.66 | 143.98 ▼6.91 |
Add New Post /wp-admin/post-new.php | 1,902 ▲142 | 19.80 ▼2.07 | 421.55 ▼14.79 | 209.95 ▲19.96 |
Media Library /wp-admin/upload.php | 1,743 ▲45 | 5.73 ▲0.20 | 150.55 ▲6.34 | 198.55 ▼23.00 |
List /wp-admin/admin.php?page=hasp-list | 1,289 | 3.18 | 60.25 | 100.49 |
Settings /wp-admin/admin.php?page=hasp-settings | 1,221 | 3.19 | 59.04 | 102.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-schedule-posts/admin/list.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/advanced-schedule-posts/advanced-schedule-posts.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_type() in wp-content/plugins/advanced-schedule-posts/include/meta_box.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-schedule-posts/admin/settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_type() in wp-content/plugins/advanced-schedule-posts/include/meta_box_block.php:5
- > 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 on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: schedule, post, admin
advanced-schedule-posts/advanced-schedule-posts.php Passed 13 tests
The main file in "Advanced Schedule Posts" v. 2.1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
95 characters long description:
Allows you to set datetime of expiration and to set schedule which overwrites the another post.
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 plugin3,352 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 234 | 295 | 2,003 |
PHP | 5 | 187 | 200 | 1,209 |
PO File | 1 | 36 | 37 | 88 |
CSS | 1 | 6 | 13 | 34 |
Markdown | 1 | 13 | 0 | 18 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 186.00 |
▷ Minimum class complexity | 186.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 5.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.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 | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 39 | 97.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.50% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected