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.06MB] [CPU: ▼3.09ms] Passed 4 tests
Server-side resources used by Simple Diary for Wordpress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 35.01 ▼5.53 |
Dashboard /wp-admin | 3.36 ▲0.06 | 44.59 ▼2.41 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 45.97 ▼2.25 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 90.16 ▼2.16 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 34.40 ▲0.10 |
New /wp-admin/post-new.php?post_type=reminder | 3.36 | 53.27 |
All reminders /wp-admin/edit.php?post_type=reminder | 3.29 | 31.35 |
Simple Diary /wp-admin/options-general.php?page=simdiaw_options_page | 3.25 | 29.71 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=reminder | 3.28 | 33.22 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 168 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_simdiaw_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Diary for Wordpress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲103 | 13.28 ▼1.51 | 1.67 ▼0.21 | 41.69 ▼2.85 |
Dashboard /wp-admin | 2,238 ▲50 | 5.85 ▼0.03 | 103.95 ▲1.72 | 38.40 ▼2.07 |
Posts /wp-admin/edit.php | 2,129 ▲37 | 2.02 ▲0.01 | 36.61 ▼3.89 | 31.60 ▼5.18 |
Add New Post /wp-admin/post-new.php | 1,545 ▲8 | 23.43 ▲0.12 | 679.69 ▲13.25 | 57.43 ▼1.05 |
Media Library /wp-admin/upload.php | 1,417 ▲29 | 4.18 ▼0.01 | 98.66 ▼2.13 | 43.37 ▼2.92 |
New /wp-admin/post-new.php?post_type=reminder | 2,889 | 3.33 | 77.89 | 85.79 |
All reminders /wp-admin/edit.php?post_type=reminder | 1,171 | 1.98 | 33.08 | 28.17 |
Simple Diary /wp-admin/options-general.php?page=simdiaw_options_page | 1,313 | 1.69 | 21.95 | 36.14 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=reminder | 1,341 | 2.14 | 26.99 | 29.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_simdiaw_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/edit.php?post_type=reminder
- > Notice in wp-content/plugins/simple-diary/simple-diary.php+109
Trying to access array offset on value of type bool
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
The following issues need your attention
- 19× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-diary/simdiaw-options.php:22
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-diary/simdiaw-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/simple-diary/themes-support/twentytwelve/content-reminder.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/simple-diary/themes-support/twentyten/loop-reminder.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/simple-diary/themes-support/twentyfourteen/archive-reminder.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/simple-diary/themes-support/twentyeleven/content-reminder.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/simple-diary/themes-support/twentyten/archive-reminder.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/simple-diary/themes-support/twentythirteen/single-reminder.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-diary/simdiaw-template-functions.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/simple-diary/themes-support/twentythirteen/archive-reminder.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 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
3 plugin tags: custom post type, reminders, diary
simple-diary/simple-diary.php 92% from 13 tests
"Simple Diary for Wordpress" version 1.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 151 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin9,087 lines of code in 163 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 101 | 972 | 864 | 2,973 |
HTML | 4 | 879 | 12 | 1,868 |
PHP | 20 | 377 | 429 | 1,678 |
CSS | 15 | 25 | 215 | 1,029 |
LESS | 11 | 274 | 273 | 572 |
PO File | 1 | 131 | 161 | 436 |
Markdown | 6 | 194 | 0 | 335 |
JSON | 4 | 0 | 0 | 191 |
YAML | 1 | 1 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 72 | |
▷ Named functions | 72 | 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
There are no PNG files in this plugin