Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼1.75MB] [CPU: ▼224.53ms] Passed 4 tests
This is a short check of server-side resources used by Simple Blog
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.88 ▼0.95 | 5.31 ▼30.85 |
Dashboard /wp-admin | 1.90 ▼1.15 | 6.62 ▼43.73 |
Posts /wp-admin/edit.php | 1.90 ▼1.21 | 6.37 ▼38.66 |
Add New Post /wp-admin/post-new.php | 1.90 ▼3.53 | 7.03 ▼784.86 |
Media Library /wp-admin/upload.php | 1.90 ▼1.10 | 6.24 ▼28.30 |
Add New Blog Post /wp-admin/post-new.php?post_type=blog | 1.90 | 5.69 |
Blog Category /wp-admin/edit-tags.php?taxonomy=all-blog&post_type=blog | 1.90 | 7.17 |
Blog /wp-admin/edit.php?post_type=blog | 1.90 | 5.89 |
Server storage [IO: ▲2.60MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 66 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Blog
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,875 ▲303 | 16.33 ▲0.30 | 13.85 ▲2.49 | 45.04 ▼8.69 |
Dashboard /wp-admin | 3,021 ▲90 | 6.17 ▲0.21 | 150.68 ▼45.57 | 113.64 ▼3.23 |
Posts /wp-admin/edit.php | 2,790 ▲51 | 2.75 ▲0.03 | 67.38 ▼1.68 | 87.98 ▼4.96 |
Add New Post /wp-admin/post-new.php | 1,651 ▲151 | 21.47 ▲3.11 | 317.52 ▼104.25 | 104.74 ▼5.33 |
Media Library /wp-admin/upload.php | 1,861 ▲54 | 5.13 ▲0.09 | 155.28 ▲9.92 | 120.68 ▼1.31 |
Add New Blog Post /wp-admin/post-new.php?post_type=blog | 4,194 | 10.70 | 286.75 | 164.20 |
Blog Category /wp-admin/edit-tags.php?taxonomy=all-blog&post_type=blog | 1,805 | 2.45 | 66.50 | 73.96 |
Blog /wp-admin/edit.php?post_type=blog | 1,495 | 2.79 | 68.46 | 70.62 |
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
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5663
wp_register_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 wpvs-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
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)
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=blog
- > POST request to /wp-admin/admin-ajax.php
- > User notice in wp-includes/functions.php+5663
wp_register_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 wpvs-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=blog
- > POST request to /wp-admin/admin-ajax.php
- > User notice in wp-includes/functions.php+5663
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 wpvs-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=blog
- > POST request to /wp-admin/admin-ajax.php
- > User notice in wp-includes/functions.php+5663
wp_register_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 wpvs-pickme handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=blog
- > POST request to /wp-admin/admin-ajax.php
- > User notice in wp-includes/functions.php+5663
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 wpvs-pickme handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=blog
- > POST request to /wp-admin/admin-ajax.php
- > User notice in wp-includes/functions.php+5663
wp_register_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 wpvs-tem-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=blog
- > POST request to /wp-admin/admin-ajax.php
- > User notice in wp-includes/functions.php+5663
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 wpvs-tem-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=blog
- > POST request to /wp-admin/admin-ajax.php
- > User notice in wp-includes/functions.php+5663
wp_enqueue_script 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 jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
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
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-blog/simple-blog.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/simple-blog/simpleBlog/blog-listing-tpl.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/simple-blog/simpleBlog/simple-blog-bkup-2.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/simple-blog/simpleBlog/single-blog-latest-bkup-1.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/simple-blog/simpleBlog/single-blog.php:8
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Donate link: Please fix this invalid URI: ""
simple-blog/simple-blog.php Passed 13 tests
The main file in "Simple Blog" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
71 characters long description:
Declares a plugin that will create a custom post type displaying Blogs.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected14,920 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 570 | 91 | 12,110 |
JavaScript | 11 | 84 | 127 | 1,752 |
PHP | 5 | 163 | 116 | 829 |
SVG | 1 | 0 | 0 | 229 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
simpleBlog/simple-blog-images/key2.png | 2.93KB | 0.28KB | ▼ 90.45% |
simpleBlog/simple-blog-images/img-sp.png | 6.17KB | 2.31KB | ▼ 62.59% |
simpleBlog/simple-blog-images/si.png | 2.02KB | 1.04KB | ▼ 48.70% |
simpleBlog/simple-blog-images/social-icons.png | 6.21KB | 2.04KB | ▼ 67.21% |
simpleBlog/simple-blog-images/close.png | 0.29KB | 0.23KB | ▼ 20.34% |