Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼283.59ms] Passed 4 tests
Analyzing server-side resources used by Unread Posts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.17 | 103.73 ▲22.64 |
Dashboard /wp-admin | 3.52 ▲0.12 | 42.58 ▲4.09 |
Posts /wp-admin/edit.php | 3.75 ▲0.11 | 42.03 ▼0.18 |
Add New Post /wp-admin/post-new.php | 6.98 ▲0.02 | 141.39 ▼1,140.15 |
Media Library /wp-admin/upload.php | 3.40 ▲0.11 | 31.19 ▲1.88 |
Unread Posts /wp-admin/options-general.php?page=unread-posts-settings | 3.38 | 24.72 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_up-unread-posts |
Browser metrics Passed 4 tests
Unread Posts: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,786 ▲64 | 15.63 ▲0.51 | 6.54 ▲0.79 | 3.43 ▲1.02 |
Dashboard /wp-admin | 2,879 ▲25 | 6.10 ▼0.07 | 125.69 ▼11.22 | 154.81 ▼3.55 |
Posts /wp-admin/edit.php | 2,693 ▲2 | 3.24 ▲0.01 | 64.70 ▼1.28 | 142.91 ▼2.74 |
Add New Post /wp-admin/post-new.php | 1,757 ▲96 | 21.07 ▲4.79 | 447.43 ▲49.39 | 162.15 ▼12.60 |
Media Library /wp-admin/upload.php | 1,706 ▲8 | 5.53 ▲0.01 | 137.69 ▼0.83 | 190.73 ▼14.89 |
Unread Posts /wp-admin/options-general.php?page=unread-posts-settings | 1,388 | 2.80 | 63.52 | 133.96 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_up-unread-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'UP_Unread_Posts_Handler' not found in wp-content/plugins/unread-posts/classes/class-up-unread-posts-handler-cookie.php:24
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/unread-posts/classes/class-up-unread-posts-widget.php:26
- > PHP Fatal error
Uncaught Error: Class 'UP_Unread_Posts_Handler' not found in wp-content/plugins/unread-posts/classes/class-up-unread-posts-handler-db.php:26
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/unread-posts/classes/class-up-unread-posts-widget.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: related, widget, posts
unread-posts/unead-posts.php 92% from 13 tests
The main file in "Unread Posts" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("unread-posts.php" instead of "unead-posts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected585 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 170 | 534 | 421 |
CSS | 2 | 27 | 17 | 88 |
PO File | 1 | 20 | 24 | 53 |
JavaScript | 2 | 8 | 4 | 23 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 3 | 8.57% |
▷ Public methods | 32 | 91.43% |
▷ Protected methods | 3 | 8.57% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
No PNG files were detected