84% crudiator

Code Review | Crudiator

WordPress plugin Crudiator scored84%from 54 tests.

About plugin

  • Plugin page: crudiator
  • Plugin version: 2.0.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Nov 16, 2022
  • Latest release: Jun 23, 2023
  • Number of updates: 7
  • Update frequency: every 32.0 days
  • Top authors: takafu (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /702 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /4.62 ▲0.8950.76 ▲5.23
Dashboard /wp-admin4.45 ▲0.8956.74 ▲4.31
Posts /wp-admin/edit.php4.50 ▲0.8253.77 ▲0.35
Add New Post /wp-admin/post-new.php7.04 ▲0.89101.28 ▼4.12
Media Library /wp-admin/upload.php4.38 ▲0.8948.01 ▲6.54
All Tables /wp-admin/edit.php?post_type=crudiator4.4244.90
Add New /wp-admin/post-new.php?post_type=crudiator4.5854.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲7714.28 ▲0.042.19 ▲0.3344.45 ▲2.40
Dashboard /wp-admin2,219 ▲455.68 ▲0.0384.21 ▼6.1441.73 ▼4.56
Posts /wp-admin/edit.php2,124 ▲212.04 ▲0.0134.59 ▼4.4035.01 ▼3.12
Add New Post /wp-admin/post-new.php1,570 ▲3123.13 ▲0.14633.68 ▼45.1373.22 ▲12.46
Media Library /wp-admin/upload.php1,415 ▲184.21 ▼0.03102.68 ▼12.2845.18 ▼4.90
All Tables /wp-admin/edit.php?post_type=crudiator1,1091.9331.6031.08
Add New /wp-admin/post-new.php?post_type=crudiator3,2112.6156.3179.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP341,2942,3146,457
JavaScript53581772,707
PO File1116128279
CSS2340195
JSON200128
Markdown3430107
YAML210134
XML11021

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 code0.49
Average class complexity37.31
▷ Minimum class complexity1.00
▷ Maximum class complexity415.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes26
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes00.00%
Methods296
▷ Static methods227.43%
▷ Public methods21773.31%
▷ Protected methods206.76%
▷ Private methods5919.93%
Functions13
▷ Named functions215.38%
▷ Anonymous functions1184.62%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.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