Benchmarks
Plugin footprint 65% 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: ▲1.13MB] [CPU: ▼128.57ms] Passed 4 tests
Server-side resources used by BP Story - WordPress user stories (story) plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.06 ▲0.34 | 40.07 ▲13.99 |
Dashboard /wp-admin | 4.49 ▲1.43 | 60.73 ▲18.18 |
Posts /wp-admin/edit.php | 4.57 ▲1.46 | 60.42 ▲13.49 |
Add New Post /wp-admin/post-new.php | 6.80 ▲1.36 | 96.33 ▼542.38 |
Media Library /wp-admin/upload.php | 4.38 ▲1.38 | 43.20 ▲0.63 |
Admin story boxes /wp-admin/admin.php?page=bpstory-admin-story-boxes | 4.44 | 42.46 |
Settings /wp-admin/admin.php?page=bpstory-settings | 4.39 | 46.60 |
Admin stories /wp-admin/admin.php?page=bpstory-admin-stories | 4.40 | 42.23 |
Server storage [IO: ▲6.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 171 new files
Database: 2 new tables, 2 new options
New tables |
---|
wp_bpstory_admin_story_boxes |
wp_bpstory_admin_stories |
New WordPress options |
---|
bpstory_settings_db_version |
bpstory_settings |
Browser metrics Passed 4 tests
An overview of browser requirements for BP Story - WordPress user stories (story) plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,971 ▲375 | 20.42 ▲4.85 | 53.34 ▲44.54 | 45.30 ▼2.84 |
Dashboard /wp-admin | 3,210 ▲279 | 7.94 ▲2.03 | 170.75 ▲10.83 | 107.90 ▼0.24 |
Posts /wp-admin/edit.php | 3,009 ▲270 | 4.19 ▲1.47 | 85.12 ▲17.52 | 85.14 ▼6.29 |
Add New Post /wp-admin/post-new.php | 1,700 ▼1,948 | 18.45 ▲3.43 | 382.42 ▼115.98 | 128.74 ▲22.19 |
Media Library /wp-admin/upload.php | 1,858 ▲51 | 4.77 ▼0.27 | 115.94 ▼44.44 | 113.94 ▼6.89 |
Admin story boxes /wp-admin/admin.php?page=bpstory-admin-story-boxes | 1,505 | 3.34 | 74.84 | 64.20 |
Settings /wp-admin/admin.php?page=bpstory-settings | 1,744 | 4.36 | 87.71 | 103.80 |
Admin stories /wp-admin/admin.php?page=bpstory-admin-stories | 1,505 | 3.33 | 76.77 | 67.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_bpstory_admin_story_boxes
- wp_bpstory_admin_stories
- The uninstall procedure has failed, leaving 2 options in the database
- bpstory_settings
- bpstory_settings_db_version
Smoke tests 25% 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)
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bpstory-admin-stories
- > Warning in wp-includes/pluggable.php+1343
Cannot modify header information - headers already sent by (output started at wp-includes/formatting.php:5740)
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/beycanpress-advanced-story/vendor/beycan/wordpress-table-creator/src/Table.php
- 21× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/beycanpress-advanced-story/views/pages/admin-stories/add-new.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/beycanpress-advanced-story/views/pages/admin-story-boxes/form.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/beycanpress-advanced-story/views/pages/admin-story-boxes/edit.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/beycanpress-advanced-story/views/pages/admin-stories/list.php:3
- > PHP Fatal error
Trait 'BeycanPress\\Story\\Traits\\Helpers' not found in wp-content/plugins/beycanpress-advanced-story/classes/RegisterIntegrations.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/beycanpress-advanced-story/views/pages/admin-story-boxes/list.php:3
- > PHP Fatal error
Trait 'BeycanPress\\Story\\Traits\\Helpers' not found in wp-content/plugins/beycanpress-advanced-story/classes/StoryTypes/AdminStories.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/beycanpress-advanced-story/views/notice.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/beycanpress-advanced-story/views/pages/admin-stories/form.php:7
- > PHP Fatal error
Trait 'BeycanPress\\Story\\Traits\\Helpers' not found in wp-content/plugins/beycanpress-advanced-story/classes/Pages/AdminStoryBoxes.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #18 (18) image missing
beycanpress-advanced-story/bpstory.php 69% from 13 tests
This is the main PHP file of "BP Story - WordPress user stories (story) plugin" version 3.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Domain Path: The domain path folder was not found ("/languages")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("beycanpress-advanced-story.php" instead of "bpstory.php")
- Git Repository: Please remove the Git repository from this plugin
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
No dangerous file extensions were detected14,404 lines of code in 136 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 96 | 2,156 | 1,206 | 7,455 |
PO File | 20 | 3,037 | 3,414 | 6,180 |
Markdown | 3 | 112 | 0 | 442 |
JavaScript | 5 | 2 | 628 | 211 |
JSON | 3 | 0 | 0 | 106 |
CSS | 6 | 2 | 12 | 7 |
SVG | 2 | 0 | 0 | 2 |
XML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 19.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 5.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 65 | |
▷ Abstract classes | 2 | 3.08% |
▷ Concrete classes | 63 | 96.92% |
▷ Final classes | 1 | 1.59% |
Methods | 295 | |
▷ Static methods | 48 | 16.27% |
▷ Public methods | 259 | 87.80% |
▷ Protected methods | 17 | 5.76% |
▷ Private methods | 19 | 6.44% |
Functions | 47 | |
▷ Named functions | 22 | 46.81% |
▷ Anonymous functions | 25 | 53.19% |
Constants | 1 | |
▷ Global constants | 1 | 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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/codestar-framework-2.2.2/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
assets/img/buy-now-premium.png | 32.69KB | 11.77KB | ▼ 64.00% |