Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼3.18ms] Passed 4 tests
This is a short check of server-side resources used by Unread Posts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 40.12 ▼0.83 |
Dashboard /wp-admin | 3.41 ▲0.11 | 45.72 ▼2.02 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 45.40 ▼2.31 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 95.90 ▼4.15 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 33.49 ▼4.24 |
Unread Posts /wp-admin/options-general.php?page=unread-posts-settings | 3.31 | 32.47 |
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, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_up-unread-posts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Unread Posts: 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,829 ▲94 | 13.13 ▼1.29 | 5.00 ▲3.18 | 43.52 ▲5.56 |
Dashboard /wp-admin | 2,204 ▲15 | 4.87 ▼0.10 | 96.05 ▼18.19 | 39.25 ▼2.49 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.03 | 33.57 ▼7.43 | 34.69 ▼0.90 |
Add New Post /wp-admin/post-new.php | 1,517 ▼18 | 17.57 ▼5.75 | 646.94 ▼51.82 | 58.76 ▼10.63 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▲0.03 | 96.43 ▼12.27 | 41.17 ▼5.88 |
Unread Posts /wp-admin/options-general.php?page=unread-posts-settings | 1,140 | 2.30 | 32.06 | 26.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_up-unread-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > 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
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-cookie.php:24
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 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: posts, widget, related
unread-posts/unead-posts.php 92% from 13 tests
Analyzing the main PHP file in "Unread Posts" version 1.0.3
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("unread-posts.php" instead of "unead-posts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin585 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
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected