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.17MB] [CPU: ▼1.56ms] Passed 4 tests
Analyzing server-side resources used by Advanced Post Block - Display Posts, Pages, or Custom Posts on Your Page
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 37.20 ▼1.00 |
Dashboard /wp-admin | 3.48 ▲0.13 | 49.82 ▼8.68 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 53.92 ▲8.40 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 86.42 ▼2.23 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 38.76 ▲5.67 |
Advanced Post Block /wp-admin/admin.php?page=advanced-post-block | 3.36 | 37.33 |
Upgrade /wp-admin/edit.php?post_type=apb&page=apb-upgrade | 3.37 | 34.64 |
Server storage [IO: ▲2.51MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 70 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
apb_pro-redirect |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Post Block - Display Posts, Pages, or Custom Posts on Your Page
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,645 ▼1,102 | 11.69 ▼2.66 | 1.09 ▼0.43 | 29.20 ▼7.72 |
Dashboard /wp-admin | 2,300 ▲119 | 5.52 ▼0.19 | 89.40 ▼26.52 | 61.50 ▲18.48 |
Posts /wp-admin/edit.php | 2,212 ▲109 | 2.00 ▼0.01 | 42.38 ▲2.24 | 44.58 ▲9.53 |
Add New Post /wp-admin/post-new.php | 6,456 ▲4,930 | 30.06 ▲7.21 | 942.64 ▲256.21 | 39.18 ▼32.43 |
Media Library /wp-admin/upload.php | 1,509 ▲115 | 4.11 ▼0.11 | 94.08 ▼4.53 | 44.96 ▲1.87 |
Advanced Post Block /wp-admin/admin.php?page=advanced-post-block | 899 | 2.47 | 45.25 | 28.61 |
Upgrade /wp-admin/edit.php?post_type=apb&page=apb-upgrade | 1,909 | 3.36 | 72.85 | 141.62 |
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 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- apb_pro-redirect
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
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 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
Almost there! Just fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-post-block/inc/custom-post.php:6
- > PHP Fatal error
Uncaught Error: Class 'BSDK' not found in wp-content/plugins/advanced-post-block/bplugins_sdk/inc/Base/Activate.php:3
- > PHP Fatal error
Uncaught Error: Class 'APBPlugin' not found in wp-content/plugins/advanced-post-block/inc/block.php:2
- > PHP Warning
Use of undefined constant APB_VERSION - assumed 'APB_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-post-block/dist/editor.asset.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'BSDK' not found in wp-content/plugins/advanced-post-block/bplugins_sdk/inc/Base/License.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-post-block/inc/free.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=apb&page=apb-upgrade
- > Javascript (severe) in unknown
/wp-content/plugins/advanced-post-block/dist/admin.js?ver=1.12.3 0:1597 Uncaught TypeError: Cannot read properties of null (reading 'insertAdjacentElement')
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=apb&page=apb-upgrade
- > Security (severe) in unknown
https://js.freemius.com/vendors/nojquery.ba-postmessage.min.js?v=180 11 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://localhost') does not match the recipient window's origin ('').
Optimizations
Plugin configuration 93% 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
These attributes need your attention:
- Requires at least: The plugin version is formatted incorrectly
advanced-post-block/plugin.php 92% from 13 tests
The entry point to "Advanced Post Block - Display Posts, Pages, or Custom Posts on Your Page" version 1.12.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("advanced-post-block.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected2,640 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 167 | 38 | 855 |
JSON | 5 | 0 | 0 | 568 |
JavaScript | 19 | 71 | 31 | 491 |
PO File | 2 | 230 | 468 | 491 |
Sass | 3 | 11 | 5 | 184 |
CSS | 7 | 4 | 6 | 51 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 6 | 9.52% |
▷ Public methods | 61 | 96.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.17% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bplugins_sdk/dist/assets/images/shield_success.png | 3.47KB | 3.61KB | 0.00% |