Benchmarks
Plugin footprint 83% 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.05MB] [CPU: ▼2.07ms] Passed 4 tests
An overview of server-side resources used by bbPress Notify (No-Spam)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.34 ▼2.23 |
Dashboard /wp-admin | 3.35 ▲0.05 | 43.87 ▼5.39 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 46.44 ▼1.97 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.97 ▲6.60 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 32.62 ▲1.31 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for bbPress Notify (No-Spam)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲37 | 14.72 ▲0.58 | 1.65 ▲0.01 | 43.50 ▼2.66 |
Dashboard /wp-admin | 2,204 ▲33 | 5.57 ▲0.08 | 88.84 ▼4.11 | 42.27 ▼0.20 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 1.94 ▼0.02 | 41.21 ▲3.23 | 37.43 ▲1.66 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.27 ▲0.22 | 592.00 ▼76.93 | 63.39 ▲3.95 |
Media Library /wp-admin/upload.php | 1,409 ▲12 | 4.19 ▼0.01 | 97.08 ▼7.61 | 45.81 ▲1.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 items
- 18× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/bbpress-notify-nospam/includes/view/settings.class.php
- > /wp-content/plugins/bbpress-notify-nospam/includes/helper/converter.class.php
- > /wp-content/plugins/bbpress-notify-nospam/t/data/template_for_test.tmpl.php
- > /wp-content/plugins/bbpress-notify-nospam/includes/dal/dry_run_dao.class.php
- > /wp-content/plugins/bbpress-notify-nospam/includes/controller/ajax.class.php
- > /wp-content/plugins/bbpress-notify-nospam/includes/controller/admin_core.class.php
- > /wp-content/plugins/bbpress-notify-nospam/bbpress-notify-nospam.php
- > /wp-content/plugins/bbpress-notify-nospam/includes/model/ajax_request.class.php
- > /wp-content/plugins/bbpress-notify-nospam/includes/dal/settings_dao.class.php
- > /wp-content/plugins/bbpress-notify-nospam/includes/dal/addons_dao.class.php
- 38× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
require_once(ABSPATH/wp-content/plugins/bbpress-notify-nospam/bbpress-notify-nospam.php): failed to open stream: No such file or directory in wp-content/plugins/bbpress-notify-nospam/t/bbPress_Notify_noSpam_Child.class.php on line 6
- > PHP Warning
require_once(ABSPATH/wp-content/plugins/bbpress-notify-nospam/bbpress-notify-nospam.php): failed to open stream: No such file or directory in wp-content/plugins/bbpress-notify-nospam/t/bbPress_Notify_noSpam_Child.class.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/bbpress-notify-nospam/includes/view/templates/plugin_settings.tmpl.php:2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-content/plugins/bbpress/bbpress.php' (include_path='.:/usr/share/php') in wp-content/plugins/bbpress-notify-nospam/t/00-notify.php on line 6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-content/plugins/bbpress-notify-nospam/bbpress-notify-nospam.php' (include_path='.:/usr/share/php') in wp-content/plugins/bbpress-notify-nospam/t/bbPress_Notify_noSpam_Child.class.php on line 6
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bbpress-notify-nospam/t/bbPress_Notify_noSpam_Child.class.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/bbpress-notify-nospam/includes/view/templates/settings/replies_body.tmpl.php:1
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bbpress-notify-nospam/t/bbPress_Notify_noSpam_Child.class.php on line 6
- > PHP Notice
Trying to get property 'foo' of non-object in wp-content/plugins/bbpress-notify-nospam/t/data/template_for_test.tmpl.php on line 1
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bbpress-notify-nospam/t/bbPress_Notify_noSpam_Child.class.php on line 6
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The settings page - General tab), #2 (The settings page - Topics tab), #3 (The settings page - Replies tab), #4 (The settings page - Support tab)
bbpress-notify-nospam/bbpress-notify-nospam.php 92% from 13 tests
The main file in "bbPress Notify (No-Spam)" v. 2.18.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 257 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin4,879 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 1,421 | 1,176 | 4,312 |
PO File | 1 | 133 | 150 | 418 |
JavaScript | 3 | 16 | 6 | 77 |
CSS | 3 | 13 | 0 | 72 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 17.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 142.00 |
Average method complexity | 3.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 1 | 3.85% |
▷ Concrete classes | 25 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 203 | |
▷ Static methods | 4 | 1.97% |
▷ Public methods | 180 | 88.67% |
▷ Protected methods | 8 | 3.94% |
▷ Private methods | 15 | 7.39% |
Functions | 10 | |
▷ Named functions | 1 | 10.00% |
▷ Anonymous functions | 9 | 90.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 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
4 compressed PNG files occupy 0.26MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 42.04KB | 43.43KB | 0.00% |
screenshot-4.png | 43.84KB | 45.25KB | 0.00% |
screenshot-2.png | 88.62KB | 92.69KB | 0.00% |
screenshot-3.png | 91.46KB | 95.66KB | 0.00% |