Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.39ms] Passed 4 tests
Analyzing server-side resources used by WP-CFM
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 48.06 ▲3.29 |
Dashboard /wp-admin | 3.33 ▼0.02 | 48.67 ▼15.66 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.16 ▼2.64 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 89.09 ▼2.57 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.95 ▼0.70 |
WP-CFM /wp-admin/options-general.php?page=wpcfm | 3.38 | 37.82 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/wp-cfm/" and "wp-content/uploads/"
- (new file) wp-content/config/.empty
Filesystem: 67 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WP-CFM
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.39 ▼0.14 | 1.75 ▼0.22 | 45.08 ▲2.14 |
Dashboard /wp-admin | 2,193 ▲13 | 5.55 ▼0.09 | 83.55 ▼10.22 | 37.69 ▼4.05 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.04 | 35.99 ▼3.34 | 35.21 ▼2.37 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.27 ▲0.14 | 634.50 ▼44.33 | 62.15 ▲3.85 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.19 ▼0.00 | 96.02 ▼11.59 | 43.35 ▼4.54 |
WP-CFM /wp-admin/options-general.php?page=wpcfm | 1,629 | 2.12 | 28.75 | 24.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Yaml\\Exception\\ExceptionInterface' not found in wp-content/plugins/wp-cfm/vendor/symfony/yaml/Exception/RuntimeException.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Yaml\\Exception\\RuntimeException' not found in wp-content/plugins/wp-cfm/vendor/symfony/yaml/Exception/ParseException.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-cfm/includes/integrations/taxonomy.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-cfm/templates/page-settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/wp-cfm/vendor/symfony/yaml/Command/LintCommand.php:35
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Yaml\\Exception\\RuntimeException' not found in wp-content/plugins/wp-cfm/vendor/symfony/yaml/Exception/DumpException.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: settings, features, configuration management, wordpress, wp-cli...
wp-cfm/wp-cfm.php 92% from 13 tests
The main PHP script in "WP-CFM" version 1.7.8 is automatically included on every request by WordPress
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "5.0")
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin5,368 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 1,023 | 1,542 | 4,101 |
JSON | 5 | 0 | 0 | 513 |
Markdown | 6 | 114 | 0 | 319 |
JavaScript | 8 | 53 | 25 | 303 |
CSS | 2 | 38 | 5 | 132 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 130)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 299.00 |
Average method complexity | 5.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 130.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 2 | 7.69% |
Methods | 199 | |
▷ Static methods | 58 | 29.15% |
▷ Public methods | 141 | 70.85% |
▷ Protected methods | 2 | 1.01% |
▷ Private methods | 56 | 28.14% |
Functions | 34 | |
▷ Named functions | 24 | 70.59% |
▷ Anonymous functions | 10 | 29.41% |
Constants | 33 | |
▷ Global constants | 12 | 36.36% |
▷ Class constants | 21 | 63.64% |
▷ Public constants | 19 | 90.48% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin