Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.14MB] [CPU: ▲28.57ms] 50% from 4 tests
Server-side resources used by Anti Spam by Fullworks
The following require your attention
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,925.41ms on /wp-admin/options-general.php?page=fullworks-anti-spam-settings)
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.14MB on /wp-admin/admin.php?page=fullworks-anti-spam-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.00 ▲5.53 | 67.80 ▲28.70 |
Dashboard /wp-admin | 9.02 ▲5.71 | 76.06 ▲22.92 |
Posts /wp-admin/edit.php | 9.02 ▲5.66 | 84.21 ▲36.07 |
Add New Post /wp-admin/post-new.php | 9.55 ▲3.66 | 120.89 ▲26.60 |
Media Library /wp-admin/upload.php | 9.02 ▲5.79 | 70.46 ▲38.97 |
Anti Spam /wp-admin/options-general.php?page=fullworks-anti-spam-settings | 9.02 | 1,925.41 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.02 | 61.28 |
Settings /wp-admin/admin.php?page=fullworks-anti-spam-settings | 9.02 | 61.13 |
Server storage [IO: ▲3.40MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 267 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_fwantispam_log |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
fullworks-anti-spam |
fs_active_plugins |
fs_accounts |
can_compress_scripts |
fs_debug_mode |
fullworks_anti_spam_db_version |
... |
Browser metrics Passed 4 tests
Anti Spam by Fullworks: 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,902 ▲140 | 13.79 ▼0.57 | 7.57 ▲5.76 | 29.95 ▼12.77 |
Dashboard /wp-admin | 2,218 ▲38 | 5.66 ▲0.00 | 95.01 ▼5.41 | 44.43 ▼0.17 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.01 ▲0.04 | 40.22 ▲2.56 | 41.65 ▲8.91 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 22.99 ▼0.18 | 689.97 ▼1.44 | 51.49 ▼1.48 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.13 ▼0.08 | 95.59 ▼9.47 | 42.30 ▼2.30 |
Anti Spam /wp-admin/options-general.php?page=fullworks-anti-spam-settings | 1,053 | 2.01 | 33.05 | 57.67 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,088 | 1.65 | 23.45 | 28.98 |
Settings /wp-admin/admin.php?page=fullworks-anti-spam-settings | 1,047 | 1.97 | 33.52 | 45.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/fullworks-anti-spam/vendor/freemius/wordpress-sdk/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 9 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- fs_accounts
- can_compress_scripts
- fs_active_plugins
- fs_debug_mode
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Fullworks_Anti_Spam\\Admin\\Admin_Pages' not found in wp-content/plugins/fullworks-anti-spam/admin/class-admin-settings.php:35
- > PHP Fatal error
require_once(): Failed opening required 'FULLWORKS_ANTI_SPAM_PLUGIN_DIR/vendor/gamajo/template-loader/class-gamajo-template-loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/fullworks-anti-spam/control/class-template-loader.php on line 38
- > PHP Warning
require_once(FULLWORKS_ANTI_SPAM_PLUGIN_DIR/vendor/gamajo/template-loader/class-gamajo-template-loader.php): failed to open stream: No such file or directory in wp-content/plugins/fullworks-anti-spam/control/class-template-loader.php on line 38
- > PHP Warning
Use of undefined constant FULLWORKS_ANTI_SPAM_PLUGIN_DIR - assumed 'FULLWORKS_ANTI_SPAM_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/fullworks-anti-spam/control/class-template-loader.php on line 38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: spam, spam firewall, anti-spam, spam protection, antispam...
fullworks-anti-spam/fullworks-anti-spam.php Passed 13 tests
"Anti Spam by Fullworks" version 1.3.11's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
60 characters long description:
Anti Spam by Fullworks providing protection for your website
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected39,266 lines of code in 207 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 147 | 8,502 | 18,774 | 35,275 |
Sass | 39 | 546 | 92 | 3,348 |
JavaScript | 4 | 38 | 83 | 221 |
JSON | 1 | 0 | 0 | 213 |
CSS | 14 | 2 | 2 | 142 |
XML | 2 | 27 | 50 | 67 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 65.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 71 | |
▷ Abstract classes | 2 | 2.82% |
▷ Concrete classes | 69 | 97.18% |
▷ Final classes | 0 | 0.00% |
Methods | 1,403 | |
▷ Static methods | 227 | 16.18% |
▷ Public methods | 983 | 70.06% |
▷ Protected methods | 20 | 1.43% |
▷ Private methods | 400 | 28.51% |
Functions | 107 | |
▷ Named functions | 103 | 96.26% |
▷ Anonymous functions | 4 | 3.74% |
Constants | 150 | |
▷ Global constants | 103 | 68.67% |
▷ Class constants | 47 | 31.33% |
▷ Public constants | 47 | 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 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/freemius/wordpress-sdk/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
vendor/freemius/wordpress-sdk/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
vendor/freemius/wordpress-sdk/assets/img/fullworks-anti-spam.png | 14.47KB | 5.86KB | ▼ 59.52% |
admin/images/brand/light-anti-spam-75h.png | 4.30KB | 3.08KB | ▼ 28.50% |