Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.01MB] [CPU: ▼14.12ms] Passed 4 tests
Analyzing server-side resources used by BIP Pages
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 44.73 ▲1.01 |
Dashboard /wp-admin | 3.57 ▲0.22 | 55.00 ▼10.98 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 54.61 ▲2.55 |
Add New Post /wp-admin/post-new.php | 5.19 ▼0.71 | 58.14 ▼49.06 |
Media Library /wp-admin/upload.php | 3.50 ▲0.26 | 46.70 ▲8.52 |
BIP Pages Settings /wp-admin/edit.php?post_type=bip&page=bip-pages-admin | 3.48 | 43.64 |
BIP Help & Checklist /wp-admin/edit.php?post_type=bip&page=bip-pages-checklist | 3.47 | 28.95 |
All BIP pages /wp-admin/edit.php?post_type=bip | 3.65 | 45.99 |
Add New /wp-admin/post-new.php?post_type=bip | 5.17 | 52.32 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 82 new files
Database: no new tables, 13 new options
New WordPress options |
---|
bip-pages-delete-access-role |
bip-pages-publish-access-role |
bip_pages_main_page_id |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
bip_pages_instruction_id |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
BIP Pages: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲88 | 14.71 ▲0.36 | 1.73 ▼0.17 | 48.35 ▲6.05 |
Dashboard /wp-admin | 2,232 ▲55 | 5.55 ▼0.11 | 98.00 ▲3.99 | 81.33 ▲37.75 |
Posts /wp-admin/edit.php | 2,155 ▲55 | 2.01 ▲0.02 | 35.60 ▼6.72 | 37.74 ▼3.63 |
Add New Post /wp-admin/post-new.php | 1,707 ▲181 | 23.74 ▲0.63 | 633.25 ▼63.46 | 39.43 ▼23.89 |
Media Library /wp-admin/upload.php | 1,449 ▲49 | 4.22 ▲0.03 | 116.39 ▲10.91 | 80.69 ▲39.13 |
BIP Pages Settings /wp-admin/edit.php?post_type=bip&page=bip-pages-admin | 963 | 2.07 | 26.02 | 36.34 |
BIP Help & Checklist /wp-admin/edit.php?post_type=bip&page=bip-pages-checklist | 1,102 | 2.17 | 27.37 | 33.26 |
All BIP pages /wp-admin/edit.php?post_type=bip | 1,821 | 2.14 | 36.17 | 33.14 |
Add New /wp-admin/post-new.php?post_type=bip | 6,241 | 19.54 | 909.44 | 34.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 12 options
- bip-pages-publish-access-role
- bip_pages_main_page_id
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- bip-pages-edit-access-role
- bip_pages_instruction_id
- db_upgraded
- bip-pages-delete-access-role
- can_compress_scripts
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=bip
- > User deprecated in wp-includes/functions.php+5828
Hook block_categories is deprecated since version 5.8.0! Use block_categories_all instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 20× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function BipPages\\add_action() in wp-content/plugins/bip-pages/bip-pages-meta-boxes.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/bip-pages/templates/bip-search-form.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/bip-pages/templates/bip-page-footer-template.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function BipPages\\Settings\\add_action() in wp-content/plugins/bip-pages/bip-pages-settings.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function BipPages\\add_action() in wp-content/plugins/bip-pages/bip-pages-activation.php:68
- > PHP Fatal error
Uncaught Error: Call to undefined function BipPages\\add_action() in wp-content/plugins/bip-pages/bip-pages-deactivation.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function BipPages\\esc_url() in wp-content/plugins/bip-pages/templates/bip-main-template.php:2
- > PHP Notice
Undefined variable: prepared_by in wp-content/plugins/bip-pages/templates/bip-page-footer-template.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/bip-pages/templates/bip-page-checklist-template.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/bip-pages/templates/bip-logo-widget-template.php:1
- > 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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: ngo, poland, government
bip-pages/bip-pages.php Passed 13 tests
The primary PHP file in "BIP Pages" version 1.2.1 is used by WordPress to initiate all plugin functionality
79 characters long description:
A plugin adding BIP (Biuletyn Informacji Publicznej) functionality to WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,704 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 289 | 86 | 1,265 |
PO File | 1 | 84 | 120 | 203 |
JavaScript | 5 | 5 | 0 | 122 |
CSS | 4 | 18 | 3 | 97 |
Markdown | 1 | 13 | 0 | 17 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 33.33% |
Functions | 68 | |
▷ Named functions | 67 | 98.53% |
▷ Anonymous functions | 1 | 1.47% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
43 PNG files occupy 0.25MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/bip-logos/bip-simple-color_500px.png | 11.94KB | 5.86KB | ▼ 50.92% |
assets/bip-logos/bip-small-2-gray-en_500px.png | 12.44KB | 5.91KB | ▼ 52.48% |
assets/bip-logos/bip-small-1-color-en_min.png | 1.77KB | 1.79KB | 0.00% |
assets/bip-logos/bip-full-color-pl_min.png | 3.27KB | 2.44KB | ▼ 25.36% |
assets/bip-logos/bip-full-mono-en_500px.png | 7.70KB | 5.41KB | ▼ 29.79% |