Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼13.50ms] Passed 4 tests
This is a short check of server-side resources used by Better Post Formats
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.66 ▼9.70 |
Dashboard /wp-admin | 3.39 ▲0.09 | 50.55 ▼3.73 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 46.51 ▼9.52 |
Add New Post /wp-admin/post-new.php | 5.57 ▼0.32 | 76.82 ▼31.04 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 40.12 ▲2.71 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 76 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Better Post Formats
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲165 | 13.99 ▼0.39 | 11.89 ▲9.84 | 48.60 ▲6.74 |
Dashboard /wp-admin | 2,221 ▲18 | 4.85 ▼1.01 | 107.45 ▼2.31 | 41.73 ▼5.58 |
Posts /wp-admin/edit.php | 2,082 ▼18 | 1.99 ▼0.03 | 38.89 ▲0.41 | 35.87 ▼2.27 |
Add New Post /wp-admin/post-new.php | 6,547 ▲5,002 | 26.17 ▲2.92 | 943.44 ▲268.51 | 62.46 ▲3.61 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.12 ▼0.16 | 110.85 ▲4.49 | 49.05 ▼0.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 27× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/better-post-formats/components/quote/templates/media.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/better-post-formats/lib/frontend.php:4
- > PHP Fatal error
Uncaught Error: Class 'betterPostFormatsHelper' not found in wp-content/plugins/better-post-formats/components/audio/load.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/better-post-formats/define.php:12
- > PHP Fatal error
Uncaught Error: Class 'betterPostFormatsMeta' not found in wp-content/plugins/better-post-formats/components/quote/quote.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-post-formats/better-post-formats.php:43
- > PHP Fatal error
Uncaught Error: Class 'betterPostFormatsHelper' not found in wp-content/plugins/better-post-formats/components/video/templates/meta-box.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/better-post-formats/components/gallery/templates/media.php:3
- > PHP Warning
Use of undefined constant BPF_ABS_PATH - assumed 'BPF_ABS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/better-post-formats/components/load.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-post-formats/components/common/load.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: featured media, featured image, post format
better-post-formats/better-post-formats.php 85% from 13 tests
Analyzing the main PHP file in "Better Post Formats" version 1.0.1
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 156 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,123 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 12 | 218 | 28 | 1,099 |
JavaScript | 8 | 164 | 120 | 874 |
PHP | 28 | 148 | 370 | 732 |
Sass | 9 | 131 | 13 | 418 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 11.80 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 17 | 51.52% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin