Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin cannot be installed
- > Error in wp-content/plugins/maxicharts-gravity-forms-source-add-on/mcharts_gf_source_add_on.php+157
Uncaught Error: Call to a member function error() on null in wp-content/plugins/maxicharts-gravity-forms-source-add-on/mcharts_gf_source_add_on.php:157
Stack trace:
#0 wp-content/plugins/maxicharts-gravity-forms-source-add-on/mcharts_gf_source_add_on.php(95): maxicharts_gravity_forms->checkGravityForms()
#1 wp-content/plugins/maxicharts-gravity-forms-source-add-on/mcharts_gf_source_add_on.php(1989): maxicharts_gravity_forms->add_hooks()
#2 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
#3 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.78ms] Passed 4 tests
Server-side resources used by MaxiCharts Gravity Forms Source add-on
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.33 ▼3.94 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.73 ▼4.48 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.20 ▲2.77 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.44 ▼18.79 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.49 ▼3.89 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 221 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MaxiCharts Gravity Forms Source add-on
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.38 ▲0.00 | 1.99 ▲0.21 | 45.32 ▼1.31 |
Dashboard /wp-admin | 2,195 ▲21 | 5.56 ▼0.09 | 88.66 ▼15.07 | 42.63 ▼3.34 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.96 ▲0.01 | 36.02 ▲1.04 | 34.32 ▼5.42 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.15 ▲0.10 | 666.43 ▲1.16 | 57.91 ▼0.88 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.24 ▼0.13 | 94.78 ▼23.07 | 45.30 ▼2.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 155× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/maxicharts-gravity-forms-source-add-on/libs/vendor/monolog/monolog/tests/Monolog/Handler/ElasticSearchHandlerTest.php:22
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/maxicharts-gravity-forms-source-add-on/libs/vendor/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php:22
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/maxicharts-gravity-forms-source-add-on/libs/vendor/monolog/monolog/tests/Monolog/Processor/GitProcessorTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/maxicharts-gravity-forms-source-add-on/libs/vendor/monolog/monolog/src/Monolog/Handler/LogglyHandler.php:24
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/maxicharts-gravity-forms-source-add-on/libs/vendor/monolog/monolog/tests/Monolog/Handler/StreamHandlerTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/maxicharts-gravity-forms-source-add-on/libs/vendor/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php:23
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/maxicharts-gravity-forms-source-add-on/libs/vendor/monolog/monolog/tests/Monolog/Formatter/JsonFormatterTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/maxicharts-gravity-forms-source-add-on/libs/vendor/monolog/monolog/src/Monolog/Handler/HipChatHandler.php:29
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/maxicharts-gravity-forms-source-add-on/libs/vendor/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php:25
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\MailHandler' not found in wp-content/plugins/maxicharts-gravity-forms-source-add-on/libs/vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php:23
- > PHP Fatal error
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 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in maxicharts-gravity-forms-source-add-on/assets to your readme.txt
- Tags: There are too many tags (21 tag instead of maximum 10)
maxicharts-gravity-forms-source-add-on/mcharts_gf_source_add_on.php 77% from 13 tests
The principal PHP file in "MaxiCharts Gravity Forms Source add-on" v. 1.7.10 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Main file name: The principal plugin file should be the same as the plugin slug ("maxicharts-gravity-forms-source-add-on.php" instead of "mcharts_gf_source_add_on.php")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin16,936 lines of code in 213 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 199 | 3,561 | 7,637 | 15,817 |
Markdown | 8 | 232 | 0 | 766 |
JSON | 5 | 0 | 0 | 337 |
XML | 1 | 3 | 0 | 16 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 7.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 312.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 5 | |
Traits | 7 | |
Classes | 195 | |
▷ Abstract classes | 8 | 4.10% |
▷ Concrete classes | 187 | 95.90% |
▷ Final classes | 0 | 0.00% |
Methods | 1,254 | |
▷ Static methods | 41 | 3.27% |
▷ Public methods | 977 | 77.91% |
▷ Protected methods | 204 | 16.27% |
▷ Private methods | 73 | 5.82% |
Functions | 90 | |
▷ Named functions | 9 | 10.00% |
▷ Anonymous functions | 81 | 90.00% |
Constants | 61 | |
▷ Global constants | 2 | 3.28% |
▷ Class constants | 59 | 96.72% |
▷ Public constants | 59 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected