Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.87MB] [CPU: ▲1.44ms] Passed 4 tests
Server-side resources used by Crudiator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.62 ▲0.89 | 50.76 ▲5.23 |
Dashboard /wp-admin | 4.45 ▲0.89 | 56.74 ▲4.31 |
Posts /wp-admin/edit.php | 4.50 ▲0.82 | 53.77 ▲0.35 |
Add New Post /wp-admin/post-new.php | 7.04 ▲0.89 | 101.28 ▼4.12 |
Media Library /wp-admin/upload.php | 4.38 ▲0.89 | 48.01 ▲6.54 |
All Tables /wp-admin/edit.php?post_type=crudiator | 4.42 | 44.90 |
Add New /wp-admin/post-new.php?post_type=crudiator | 4.58 | 54.75 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Crudiator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲77 | 14.28 ▲0.04 | 2.19 ▲0.33 | 44.45 ▲2.40 |
Dashboard /wp-admin | 2,219 ▲45 | 5.68 ▲0.03 | 84.21 ▼6.14 | 41.73 ▼4.56 |
Posts /wp-admin/edit.php | 2,124 ▲21 | 2.04 ▲0.01 | 34.59 ▼4.40 | 35.01 ▼3.12 |
Add New Post /wp-admin/post-new.php | 1,570 ▲31 | 23.13 ▲0.14 | 633.68 ▼45.13 | 73.22 ▲12.46 |
Media Library /wp-admin/upload.php | 1,415 ▲18 | 4.21 ▼0.03 | 102.68 ▼12.28 | 45.18 ▼4.90 |
All Tables /wp-admin/edit.php?post_type=crudiator | 1,109 | 1.93 | 31.60 | 31.08 |
Add New /wp-admin/post-new.php?post_type=crudiator | 3,211 | 2.61 | 56.31 | 79.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
Please fix the following items
- 19× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Medoo\\Tests\\MedooTestCase' not found in wp-content/plugins/crudiator/vendor/catfan/medoo/tests/RawTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'Medoo\\Tests\\MedooTestCase' not found in wp-content/plugins/crudiator/vendor/catfan/medoo/tests/GetTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'Medoo\\Tests\\MedooTestCase' not found in wp-content/plugins/crudiator/vendor/catfan/medoo/tests/AggregateTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'Medoo\\Tests\\MedooTestCase' not found in wp-content/plugins/crudiator/vendor/catfan/medoo/tests/WhereTest.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/crudiator/crudiator_const.php:8
- > PHP Fatal error
Uncaught Error: Class 'Medoo\\Tests\\MedooTestCase' not found in wp-content/plugins/crudiator/vendor/catfan/medoo/tests/DeleteTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'Medoo\\Tests\\MedooTestCase' not found in wp-content/plugins/crudiator/vendor/catfan/medoo/tests/QuoteTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'Medoo\\Tests\\MedooTestCase' not found in wp-content/plugins/crudiator/vendor/catfan/medoo/tests/QueryTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/crudiator/vendor/catfan/medoo/tests/MedooTestCase.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/crudiator/crudiator_const.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: custom table, delete, insert, database table, update...
crudiator/crudiator.php Passed 13 tests
The principal PHP file in "Crudiator" v. 2.0.1 is loaded by WordPress automatically on each request
116 characters long description:
This plugin allows you to easily Create, Read, Update, Delete, etc. tables in the database with a WordPress-like UI.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected9,928 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 1,294 | 2,314 | 6,457 |
JavaScript | 5 | 358 | 177 | 2,707 |
PO File | 1 | 116 | 128 | 279 |
CSS | 2 | 34 | 0 | 195 |
JSON | 2 | 0 | 0 | 128 |
Markdown | 3 | 43 | 0 | 107 |
YAML | 2 | 10 | 1 | 34 |
XML | 1 | 1 | 0 | 21 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 37.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 415.00 |
Average method complexity | 4.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 296 | |
▷ Static methods | 22 | 7.43% |
▷ Public methods | 217 | 73.31% |
▷ Protected methods | 20 | 6.76% |
▷ Private methods | 59 | 19.93% |
Functions | 13 | |
▷ Named functions | 2 | 15.38% |
▷ Anonymous functions | 11 | 84.62% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 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 files were detected