Benchmarks
Plugin footprint 46% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲6.69MB] [CPU: ▲35.87ms] 25% from 4 tests
An overview of server-side resources used by ForceField
Please fix the following
- RAM: Try to keep total memory usage under 10MB (currently 10.69MB on /wp-admin/admin.php?page=freemius)
- CPU: Total CPU usage must kept under 500.00ms (currently 928.56ms on /wp-admin/admin.php?page=forcefield)
- Extra RAM: The extra memory usage should kept under 5MB (currently 6.69MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 10.19 ▲6.73 | 75.53 ▲31.14 |
Dashboard /wp-admin | 10.69 ▲7.38 | 101.31 ▲45.35 |
Posts /wp-admin/edit.php | 10.69 ▲7.33 | 88.75 ▲34.81 |
Add New Post /wp-admin/post-new.php | 11.20 ▲5.31 | 126.39 ▲32.18 |
Media Library /wp-admin/upload.php | 10.69 ▲7.46 | 88.83 ▲51.17 |
WordQuest /wp-admin/admin.php?page=wordquest | 10.69 | 1,416.18 |
ForceField /wp-admin/admin.php?page=forcefield | 10.69 | 928.56 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 10.69 | 74.92 |
Server storage [IO: ▲3.83MB] [DB: ▲0.21MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 204 new files
Database: 1 new table, 14 new options
New tables |
---|
wp_forcefield_ips |
New WordPress options |
---|
forcefield_first_install |
wq_sidebar_options |
wq |
theysaidso_admin_options |
forcefield |
widget_recent-posts |
fs_accounts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
... |
Browser metrics Passed 4 tests
A check of browser resources used by ForceField
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,073 ▲312 | 13.47 ▼1.17 | 1.64 ▼0.27 | 31.92 ▼18.96 |
Dashboard /wp-admin | 2,462 ▲285 | 5.93 ▲0.40 | 89.85 ▼6.25 | 77.57 ▲35.25 |
Posts /wp-admin/edit.php | 2,195 ▲95 | 2.06 ▲0.05 | 41.32 ▲2.07 | 37.42 ▲0.03 |
Add New Post /wp-admin/post-new.php | 1,569 ▲41 | 24.48 ▲1.40 | 666.86 ▼13.09 | 53.71 ▲1.70 |
Media Library /wp-admin/upload.php | 1,471 ▲71 | 4.26 ▲0.06 | 103.22 ▼1.76 | 74.11 ▲26.70 |
WordQuest /wp-admin/admin.php?page=wordquest | 1,783 | 2.45 | 32.36 | 83.96 |
ForceField /wp-admin/admin.php?page=forcefield | 1,033 | 1.87 | 27.34 | 50.61 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,135 | 1.82 | 27.62 | 26.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.21MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/forcefield/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie tables were found after uninstall: 1 table
- wp_forcefield_ips
- This plugin did not uninstall successfully, leaving 14 options in the database
- can_compress_scripts
- fs_accounts
- db_upgraded
- fs_debug_mode
- forcefield_first_install
- wq
- theysaidso_admin_options
- fs_active_plugins
- widget_recent-posts
- ff_sidebar_options
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function has_action() in wp-content/plugins/forcefield/wordquest.php:92
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/forcefield/forcefield-block.php:119
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/forcefield/forcefield-auth.php:182
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/forcefield/loader.php:3171
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/forcefield/forcefield-apis.php:36
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=wordquest
- > Network (severe)
https://pluginreview.net/recommends/images/ - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: security, rest api, admin protect, api access, xml rpc...
forcefield/loader.php 92% from 13 tests
The main PHP script in "ForceField" version 1.2.9 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("forcefield.php" instead of "loader.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin44,645 lines of code in 146 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 126 | 10,418 | 22,277 | 43,968 |
Markdown | 2 | 120 | 0 | 387 |
JavaScript | 3 | 34 | 59 | 194 |
XML | 1 | 17 | 7 | 77 |
CSS | 13 | 0 | 0 | 13 |
JSON | 1 | 0 | 0 | 6 |
PHP code 0% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
- Method cyclomatic complexity should be reduced to less than 100 (currently 129)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 93.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 129.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 2 | 3.51% |
▷ Concrete classes | 55 | 96.49% |
▷ Final classes | 0 | 0.00% |
Methods | 1,459 | |
▷ Static methods | 206 | 14.12% |
▷ Public methods | 1,055 | 72.31% |
▷ Protected methods | 31 | 2.12% |
▷ Private methods | 373 | 25.57% |
Functions | 264 | |
▷ Named functions | 236 | 89.39% |
▷ Anonymous functions | 28 | 10.61% |
Constants | 162 | |
▷ Global constants | 114 | 70.37% |
▷ Class constants | 48 | 29.63% |
▷ Public constants | 48 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/forcefield.png | 9.16KB | 5.26KB | ▼ 42.58% |
images/wordquest-icon.png | 1.24KB | 1.23KB | 0.40% |
images/cross.png | 1.22KB | 1.11KB | ▼ 9.04% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |