Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼7.76ms] Passed 4 tests
Server-side resources used by BusinessPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 39.97 ▼3.57 |
Dashboard /wp-admin | 3.49 ▲0.15 | 45.92 ▼20.41 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 48.69 ▼0.75 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 94.56 ▼6.32 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 33.92 ▲1.69 |
BusinessPress /wp-admin/options-general.php?page=businesspress | 3.37 | 38.15 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
It is recommended to fix the following issues
- The plugin illegally modified 1 file (0.69KB) outside of "wp-content/plugins/businesspress/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
businesspress |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
BusinessPress: 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,821 ▲75 | 13.42 ▼0.93 | 1.41 ▼0.36 | 44.48 ▼0.25 |
Dashboard /wp-admin | 2,266 ▲78 | 5.15 ▼0.76 | 116.28 ▼0.57 | 41.20 ▼1.64 |
Posts /wp-admin/edit.php | 2,291 ▲202 | 2.68 ▲0.66 | 54.61 ▲18.72 | 33.78 ▲1.19 |
Add New Post /wp-admin/post-new.php | 1,518 ▲4 | 23.23 ▲5.39 | 686.68 ▲24.86 | 53.99 ▼6.37 |
Media Library /wp-admin/upload.php | 1,521 ▲130 | 4.68 ▲0.41 | 112.33 ▲16.78 | 42.73 ▲1.61 |
BusinessPress /wp-admin/options-general.php?page=businesspress | 2,678 | 3.78 | 52.45 | 44.04 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
- 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/businesspress/plugins/disable-embeds.php:56
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/businesspress/businesspress-settings.class.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/businesspress/upload-path-fix.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/businesspress/plugins/fv-user-lock-out.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/businesspress/fv-search.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/businesspress/plugins/fv-fix-new-user-nicenames.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/businesspress/plugins/fv-require-email-address-for-login.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/businesspress/plugins/auto-post-thumbnail.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/businesspress/plugins/disable-json-api.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/businesspress/businesspress-notices.class.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The plugin welcome screen - if user privileges are restricted, there is a contact form to contact the site admin), #2 (The WordPress Updates settings tab), #3 (Various things you can tweak), #4 (Branding options), #5 (The improved Updates screen)
businesspress/businesspress.php Passed 13 tests
The entry point to "BusinessPress" version 0.9.13 is a PHP file that has certain tags in its header comment area
29 characters long description:
This plugin secures your site
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin4,249 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 1,311 | 636 | 3,743 |
CSS | 5 | 41 | 15 | 438 |
JavaScript | 3 | 10 | 10 | 50 |
Markdown | 1 | 17 | 0 | 18 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 90.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 437.00 |
Average method complexity | 5.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 172 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 163 | 94.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 5.23% |
Functions | 35 | |
▷ Named functions | 28 | 80.00% |
▷ Anonymous functions | 7 | 20.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.41MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 65.01KB | 22.75KB | ▼ 65.01% |
screenshot-3.png | 102.54KB | 36.42KB | ▼ 64.49% |
screenshot-5.png | 123.78KB | 47.56KB | ▼ 61.58% |
css/search-icon.png | 0.39KB | 0.27KB | ▼ 30.48% |
css/businesspress-logo.png | 1.60KB | 0.83KB | ▼ 48.32% |