Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/dpabottomofpostpage/dpabottomofpostpage-functionality.php+80
fopen(wp-content/uploads/dpabottomofpostpage/linknumber.txt): failed to open stream: No such file or directory
Server metrics [RAM: ▼1.61MB] [CPU: ▼52.94ms] Passed 4 tests
This is a short check of server-side resources used by dpaBottomofPostPage
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.38 ▼1.08 | 5.28 ▼31.50 |
Dashboard /wp-admin | 2.40 ▼0.94 | 6.93 ▼49.05 |
Posts /wp-admin/edit.php | 2.40 ▼0.95 | 6.47 ▼44.04 |
Add New Post /wp-admin/post-new.php | 2.40 ▼3.48 | 7.16 ▼87.18 |
Media Library /wp-admin/upload.php | 2.40 ▼0.83 | 7.28 ▼26.64 |
dpabottomofpostpageMenu /wp-admin/options-general.php?page=dpabottomofpostpage_Menu | 2.40 | 6.74 |
Server storage [IO: ▲1.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by dpaBottomofPostPage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲70 | 13.32 ▼1.30 | 1.71 ▲0.00 | 40.14 ▼0.18 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▲0.00 | 106.36 ▲3.66 | 39.66 ▼5.12 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.03 | 40.93 ▼0.21 | 35.88 ▲2.27 |
Add New Post /wp-admin/post-new.php | 1,425 ▼103 | 22.34 ▼0.72 | 526.66 ▼181.05 | 41.21 ▼11.35 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.27 ▲0.07 | 95.68 ▼12.36 | 43.11 ▼2.20 |
dpabottomofpostpageMenu /wp-admin/options-general.php?page=dpabottomofpostpage_Menu | 1,453 | 1.71 | 26.16 | 48.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=dpabottomofpostpage_Menu
- > Warning in wp-content/plugins/dpabottomofpostpage/dpabottomofpostpage-functionality.php+80
fopen(wp-content/uploads/dpabottomofpostpage/linknumber.txt): failed to open stream: No such file or directory
- > GET request to /wp-admin/options-general.php?page=dpabottomofpostpage_Menu
- > Warning in wp-content/plugins/dpabottomofpostpage/dpabottomofpostpage-functionality.php+81
fwrite() expects parameter 1 to be resource, bool given
- > GET request to /wp-admin/options-general.php?page=dpabottomofpostpage_Menu
- > Warning in wp-content/plugins/dpabottomofpostpage/dpabottomofpostpage-functionality.php+82
fflush() expects parameter 1 to be resource, bool given
- > GET request to /wp-admin/options-general.php?page=dpabottomofpostpage_Menu
- > Warning in wp-content/plugins/dpabottomofpostpage/dpabottomofpostpage-functionality.php+83
fclose() expects parameter 1 to be resource, bool given
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/dpabottomofpostpage/dpabottomofpostpage-functionality.php
- > /wp-content/plugins/dpabottomofpostpage/spmybpz_zbopp_setup_form.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Shows an example settings when you are the dpaBottomofPostPage plugin. This section is to setup how many messages you need in your Posts and in your Pages and whether they are to be displayed. screenshot-1.png), #2 (Shows what dpaBottomofPostPage screen will look like when first install dpaBottomofPostPage as no messages have been created. screenshot-2.png), #3 (Shows example code entered into the different Post Message Areas. Notice the AFFECTS SEO & DOES NOT AFFECT SEO radio buttons. With version 1.02 you now have the ability to display, by checking the checkboxes, individual messages in HOME and/or CATEGORY and/or ARCHIVES pages. screenshot-3.png), #4 (Shows example code entered into the different Page Message Areas. screenshot-4.png), #5 (Shows example of what your Bottom of Post can look like. screenshot-5.png), #6 (Shows example of how to allow post to display message or stop displaying message. screenshot-6.png), #7 (Shows example of how to allow page to display message or stop displaying message. screenshot-7.png), #8 (Shows how to set up to display or not to display the Like buttons. screenshot-8.png)
dpabottomofpostpage/dpabottomofpostpage-functionality.php 77% from 13 tests
The principal PHP file in "dpaBottomofPostPage" v. 1.24 [20200928]... is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 912 characters long)
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "1.24 [20200928]...")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dpabottomofpostpage.php" instead of "dpabottomofpostpage-functionality.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,970 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 306 | 362 | 1,970 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 8 | |
▷ Named functions | 8 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
23 PNG files occupy 0.85MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3-800.png | 56.85KB | 52.78KB | ▼ 7.16% |
screenshot-7.png | 28.64KB | 24.91KB | ▼ 13.03% |
screenshot-1.png | 38.96KB | 34.59KB | ▼ 11.22% |
sfc30.png | 8.25KB | 4.19KB | ▼ 49.23% |
screenshot-6.png | 27.47KB | 23.67KB | ▼ 13.85% |