Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼2.55ms] Passed 4 tests
Server-side resources used by MaxiCharts CSV Source add-on
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 43.17 ▲0.82 |
Dashboard /wp-admin | 3.43 ▲0.13 | 54.37 ▲1.82 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 52.49 ▲1.59 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 86.87 ▼12.38 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 38.60 ▼0.23 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 240 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for MaxiCharts CSV Source add-on
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.48 ▲0.31 | 1.88 ▼0.04 | 41.80 ▲0.04 |
Dashboard /wp-admin | 2,218 ▲18 | 5.77 ▼0.13 | 102.92 ▲0.21 | 37.98 ▼1.88 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.04 ▲0.03 | 36.96 ▲0.62 | 33.94 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,545 ▼0 | 23.23 ▲0.11 | 676.94 ▼6.62 | 55.92 ▲2.62 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▲0.08 | 95.52 ▼11.46 | 43.55 ▼2.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
- 156× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/maxicharts-csv-source-add-on/libs/vendor/monolog/monolog/tests/Monolog/Processor/TagProcessorTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/maxicharts-csv-source-add-on/libs/vendor/monolog/monolog/tests/Monolog/Processor/MemoryUsageProcessorTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/maxicharts-csv-source-add-on/libs/vendor/monolog/monolog/tests/Monolog/Handler/SyslogHandlerTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/maxicharts-csv-source-add-on/libs/vendor/monolog/monolog/tests/Monolog/Handler/NativeMailerHandlerTest.php:23
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/maxicharts-csv-source-add-on/libs/vendor/monolog/monolog/tests/Monolog/Handler/SwiftMailerHandlerTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/maxicharts-csv-source-add-on/libs/vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php:20
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/maxicharts-csv-source-add-on/libs/vendor/monolog/monolog/tests/Monolog/Handler/AmqpHandlerTest.php:22
- > PHP Fatal error
Uncaught Error: Class 'League\\Csv\\AbstractCsv' not found in wp-content/plugins/maxicharts-csv-source-add-on/libs/vendor/league/csv/src/Writer.php:27
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/maxicharts-csv-source-add-on/libs/vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php:27
- > PHP Fatal error
Uncaught Error: Class 'League\\Csv\\AbstractCsv' not found in wp-content/plugins/maxicharts-csv-source-add-on/libs/vendor/league/csv/src/Reader.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Requires php: Version not formatted correctly
- Tags: Too many tags (23 tag instead of maximum 10); only the first 5 tags are used in your directory listing
maxicharts-csv-source-add-on/mcharts_csv_source_add_on.php 77% from 13 tests
The entry point to "MaxiCharts CSV Source add-on" version 1.3.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("maxicharts-csv-source-add-on.php" instead of "mcharts_csv_source_add_on.php")
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin17,536 lines of code in 231 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 216 | 3,808 | 9,060 | 15,825 |
Markdown | 9 | 582 | 0 | 1,328 |
JSON | 5 | 0 | 0 | 367 |
XML | 1 | 3 | 0 | 16 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 6 | |
Traits | 7 | |
Classes | 208 | |
▷ Abstract classes | 8 | 3.85% |
▷ Concrete classes | 200 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 1,363 | |
▷ Static methods | 56 | 4.11% |
▷ Public methods | 1,064 | 78.06% |
▷ Protected methods | 226 | 16.58% |
▷ Private methods | 73 | 5.36% |
Functions | 106 | |
▷ Named functions | 14 | 13.21% |
▷ Anonymous functions | 92 | 86.79% |
Constants | 64 | |
▷ Global constants | 1 | 1.56% |
▷ Class constants | 63 | 98.44% |
▷ Public constants | 63 | 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
No PNG images were found in this plugin