Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.42ms] Passed 4 tests
An overview of server-side resources used by Blim Post Suggestion and Vote
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.00 ▲5.17 |
Dashboard /wp-admin | 3.39 ▲0.09 | 45.54 ▼6.97 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 43.78 ▼3.34 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 83.71 ▼6.61 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 39.54 ▲3.25 |
Blim Post Suggestion and Vote /wp-admin/options-general.php?page=blim_option_settings | 3.28 | 30.02 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
blim_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Blim Post Suggestion and Vote
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲71 | 14.34 ▲0.22 | 2.01 ▲0.38 | 38.51 ▲0.57 |
Dashboard /wp-admin | 2,206 ▲31 | 5.58 ▼0.01 | 82.95 ▼21.78 | 36.45 ▼2.55 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.01 ▲0.07 | 36.77 ▼4.65 | 32.28 ▼6.51 |
Add New Post /wp-admin/post-new.php | 1,550 ▲22 | 17.85 ▼5.13 | 607.44 ▼15.37 | 69.95 ▲1.17 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.19 ▼0.04 | 99.75 ▲1.93 | 46.84 ▲1.20 |
Blim Post Suggestion and Vote /wp-admin/options-general.php?page=blim_option_settings | 833 | 2.00 | 25.57 | 26.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/blim-post-suggestion-and-vote/blim.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant BLIM_FILE - assumed 'BLIM_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/blim-post-suggestion-and-vote/constant.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/blim-post-suggestion-and-vote/constant.php:19
- > PHP Warning
Use of undefined constant BLIM_FILE - assumed 'BLIM_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/blim-post-suggestion-and-vote/constant.php on line 16
- > PHP Warning
Use of undefined constant BLIM_FILE - assumed 'BLIM_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/blim-post-suggestion-and-vote/constant.php on line 13
- > PHP Warning
Use of undefined constant BLIM_FILE - assumed 'BLIM_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/blim-post-suggestion-and-vote/constant.php on line 16
- > PHP Warning
Use of undefined constant BLIM_FILE - assumed 'BLIM_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/blim-post-suggestion-and-vote/loader.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/blim-post-suggestion-and-vote/constant.php:19
- > PHP Warning
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 90% 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
5 plugin tags: posts, vote, feedback, voting, post suggestion
blim-post-suggestion-and-vote/blim.php 77% from 13 tests
The primary PHP file in "Blim Post Suggestion and Vote" version 1.0.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("blim-post-suggestion-and-vote.php" instead of "blim.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 226 characters long)
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
Success! There were no dangerous files found in this plugin621 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 101 | 182 | 391 |
CSS | 1 | 6 | 1 | 150 |
JavaScript | 1 | 10 | 0 | 80 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 3.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 19 | 73.08% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 27 | |
▷ Global constants | 27 | 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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/thumbs-up.png | 0.49KB | 0.32KB | ▼ 34.60% |
assets/img/thumbs-down.png | 0.49KB | 0.33KB | ▼ 31.74% |