Benchmarks
Plugin footprint 83% 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: ▲0.59MB] [CPU: ▼3.11ms] Passed 4 tests
This is a short check of server-side resources used by Thecamels Assistant
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.59 | 43.73 ▼1.32 |
Dashboard /wp-admin | 3.93 ▲0.59 | 57.68 ▲3.93 |
Posts /wp-admin/edit.php | 3.98 ▲0.59 | 55.83 ▲5.52 |
Add New Post /wp-admin/post-new.php | 6.52 ▲0.59 | 92.58 ▼19.30 |
Media Library /wp-admin/upload.php | 3.86 ▲0.59 | 42.45 ▲4.27 |
TC Assistant 23 /wp-admin/index.php?page=tcassistant | 3.85 | 40.12 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 96 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Thecamels Assistant
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.35 ▼0.00 | 1.77 ▲0.03 | 39.85 ▼3.03 |
Dashboard /wp-admin | 2,202 ▲28 | 5.63 ▲0.06 | 91.59 ▲0.62 | 38.56 ▼2.79 |
Posts /wp-admin/edit.php | 2,104 ▲22 | 1.94 ▼0.03 | 39.01 ▲3.25 | 37.56 ▼1.21 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.26 ▲0.02 | 662.67 ▲54.25 | 71.24 ▲20.58 |
Media Library /wp-admin/upload.php | 1,398 ▲7 | 4.18 ▼0.03 | 101.61 ▼3.66 | 42.96 ▼0.35 |
TC Assistant 23 /wp-admin/index.php?page=tcassistant | 1,241 | 2.02 | 23.87 | 40.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 20× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/thecamels-assistant/vendor/symfony/yaml/Tests/YamlTest.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/thecamels-assistant/the-camels-assistant.php:42
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Yaml\\Exception\\RuntimeException' not found in wp-content/plugins/thecamels-assistant/vendor/symfony/yaml/Exception/ParseException.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/thecamels-assistant/vendor/symfony/yaml/Command/LintCommand.php:31
- > PHP Fatal error
Uncaught Error: Interface 'TheCamels\\Assistant\\Interfaces\\Yamlable' not found in wp-content/plugins/thecamels-assistant/class/Abstracts/YamlLoader.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/thecamels-assistant/inc/views/admin-page.php:13
- > PHP Fatal error
Uncaught Error: Class 'TheCamels\\Assistant\\Abstracts\\YamlLoader' not found in wp-content/plugins/thecamels-assistant/class/Core/Checklist.php:16
- > PHP Fatal error
Uncaught Error: Class 'TheCamels\\Assistant\\Utils\\Cache\\Cache' not found in wp-content/plugins/thecamels-assistant/class/Utils/Cache/ObjectCache.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/thecamels-assistant/vendor/symfony/yaml/Tests/DumperTest.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/thecamels-assistant/inc/hooks.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: checklist, thecamels, helper, security, todo...
thecamels-assistant/the-camels-assistant.php 77% from 13 tests
The main file in "Thecamels Assistant" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("thecamels-assistant.php" instead of "the-camels-assistant.php")
Code Analysis 97% 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 plugin9,997 lines of code in 89 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 51 | 1,430 | 2,191 | 6,017 |
YAML | 31 | 130 | 89 | 3,498 |
JSON | 1 | 0 | 0 | 123 |
JavaScript | 1 | 29 | 53 | 120 |
Markdown | 3 | 56 | 0 | 118 |
CSS | 1 | 16 | 0 | 94 |
XML | 1 | 3 | 0 | 27 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 112)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 17.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 256.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 112.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 1 | 2.56% |
▷ Concrete classes | 38 | 97.44% |
▷ Final classes | 2 | 5.26% |
Methods | 407 | |
▷ Static methods | 41 | 10.07% |
▷ Public methods | 351 | 86.24% |
▷ Protected methods | 11 | 2.70% |
▷ Private methods | 45 | 11.06% |
Functions | 26 | |
▷ Named functions | 18 | 69.23% |
▷ Anonymous functions | 8 | 30.77% |
Constants | 21 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 21 | 100.00% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin