Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼1.82MB] [CPU: ▼50.16ms] Passed 4 tests
Analyzing server-side resources used by Todays Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 4.97 ▼31.62 |
Dashboard /wp-admin | 2.19 ▼1.11 | 6.23 ▼41.22 |
Posts /wp-admin/edit.php | 2.19 ▼1.17 | 6.24 ▼41.89 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 7.25 ▼85.90 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 6.42 ▼27.48 |
Todays Posts /wp-admin/options-general.php?page=todays_posts | 2.19 | 6.20 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
tpp_settings |
widget_recent-comments |
db_upgraded |
tpp_support |
Browser metrics Passed 4 tests
A check of browser resources used by Todays Posts
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 13.31 ▼0.94 | 1.71 ▼0.00 | 38.16 ▼5.83 |
Dashboard /wp-admin | 2,226 ▲52 | 5.96 ▲0.96 | 97.58 ▼17.70 | 36.87 ▼5.85 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.40 ▲0.26 | 40.20 ▼1.52 | 33.69 ▼1.30 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.43 ▲0.31 | 640.18 ▼68.11 | 37.12 ▼28.61 |
Media Library /wp-admin/upload.php | 1,424 ▲33 | 4.49 ▲0.31 | 96.56 ▼8.40 | 43.82 ▼3.47 |
Todays Posts /wp-admin/options-general.php?page=todays_posts | 1,404 | 2.88 | 66.44 | 29.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the tp_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options were found after uninstall: 8 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- tpp_settings
- tpp_support
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=todays_posts
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the tp_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=todays_posts
- > Notice in wp-content/plugins/todays-posts/class.settings-api.php+139
Undefined index: label
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 items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > 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/todays-posts/todays-posts.php on line 28
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/todays-posts/todays-posts.php:28
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
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:
- Contributors: Plugin contributors not specified
todays-posts/todays-posts.php Passed 13 tests
The main file in "Todays Posts" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
45 characters long description:
Displays posts but only from the current day.
Code Analysis Passed 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
No dangerous file extensions were detected607 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 154 | 185 | 585 |
CSS | 3 | 2 | 0 | 22 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
No PNG files were detected