Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.60MB] [CPU: ▼20.63ms] Passed 4 tests
A check of server-side resources used by Presswell Publication Schedule
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 40.40 ▼1.18 |
Dashboard /wp-admin | 3.40 ▲0.10 | 49.20 ▼3.67 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 50.60 ▼1.64 |
Add New Post /wp-admin/post-new.php | 3.23 ▼2.66 | 29.04 ▼76.03 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 39.09 ▲1.81 |
Publication Schedule /wp-admin/options-general.php?page=presswell-publication-schedule-settings | 3.30 | 34.05 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
pwps_settings |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Presswell Publication Schedule: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.31 ▼0.33 | 1.69 ▼0.26 | 40.37 ▼6.46 |
Dashboard /wp-admin | 2,199 ▲25 | 5.64 ▲0.05 | 90.65 ▲1.67 | 38.00 ▼10.21 |
Posts /wp-admin/edit.php | 2,121 ▲18 | 2.03 ▲0.02 | 42.83 ▲2.91 | 36.38 ▲1.75 |
Add New Post /wp-admin/post-new.php | 1,536 ▼1 | 23.17 ▲4.76 | 667.54 ▲18.68 | 52.00 ▼11.66 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.20 ▲0.04 | 105.37 ▲5.42 | 45.62 ▲0.41 |
Publication Schedule /wp-admin/options-general.php?page=presswell-publication-schedule-settings | 988 | 1.82 | 30.40 | 28.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- pwps_settings
- theysaidso_admin_options
Smoke tests 75% 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/presswell-publication-schedule/includes/admin/templates/fields/times.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/presswell-publication-schedule/includes/admin/templates/settings.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/presswell-publication-schedule/includes/admin/templates/fields/days.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 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
5 plugin tags: future, schedule, publish, auto-schedule, posts
presswell-publication-schedule/presswell-publication-schedule.php Passed 13 tests
The main file in "Presswell Publication Schedule" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
98 characters long description:
Simple and precise post publishing control for WordPress based on day of the week and time of day.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected548 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 166 | 49 | 546 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 34.50 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
PNG images were not found in this plugin