74% your-tables

Code Review | Your Tables

WordPress plugin Your Tables scored74%from 54 tests.

About plugin

  • Plugin page: your-tables
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 6, 2016
  • Latest release: Jun 18, 2016
  • Number of updates: 15
  • Update frequency: every 0.8 days
  • Top authors: zerotop (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,338 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.31MB] [CPU: ▼0.26ms] Passed 4 tests

Analyzing server-side resources used by Your Tables
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2939.33 ▲0.07
Dashboard /wp-admin3.66 ▲0.3651.18 ▲2.80
Posts /wp-admin/edit.php3.71 ▲0.3550.34 ▼0.49
Add New Post /wp-admin/post-new.php6.18 ▲0.2994.91 ▼3.43
Media Library /wp-admin/upload.php3.52 ▲0.2941.05 ▲6.33
Your Table Fields /wp-admin/admin.php?page=your-tables-table-wp_your_tables_fields3.4735.88
Your Tables /wp-admin/admin.php?page=your-tables-table-wp_your_tables3.4735.47
Your Tables Settings /wp-admin/options-general.php?page=your_tables_admin_settings_page3.5165.63

Server storage [IO: ▲0.13MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 32 new files
Database: 2 new tables, 7 new options
New tables
wp_your_tables_fields
wp_your_tables
New WordPress options
your_tables_database_version
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Your Tables
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲10913.69 ▼0.754.30 ▲2.6741.74 ▼6.01
Dashboard /wp-admin2,250 ▲624.94 ▲0.06109.51 ▼2.8939.75 ▼0.86
Posts /wp-admin/edit.php2,136 ▲442.08 ▲0.1143.46 ▲2.9637.22 ▲1.95
Add New Post /wp-admin/post-new.php1,550 ▲3023.15 ▲0.14690.02 ▲27.0564.14 ▲15.02
Media Library /wp-admin/upload.php1,432 ▲444.25 ▲0.0697.00 ▼5.1841.52 ▼2.61
Your Table Fields /wp-admin/admin.php?page=your-tables-table-wp_your_tables_fields1,6301.9329.7134.65
Your Tables /wp-admin/admin.php?page=your-tables-table-wp_your_tables8721.9324.9125.72
Your Tables Settings /wp-admin/options-general.php?page=your_tables_admin_settings_page9261.8025.1027.47

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_your_tables
    • wp_your_tables_fields
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • your_tables_database_version
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=your-tables-table-wp_your_tables
    • > Warning in wp-content/plugins/your-tables/includes/class-your-tables-view.php+25
    count(): Parameter must be an array or an object that implements Countable

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === your-tables === )
Please take inspiration from this readme.txt

your-tables/your-tables.php Passed 13 tests

The primary PHP file in "Your Tables" version 1.0.4 is used by WordPress to initiate all plugin functionality
100 characters long description:
This plugins lets you define forms in the admin area for existing tables in your WordPress database.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,928 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP172445581,440
PO File2228262482
JavaScript24546
CSS2080

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity25.25
▷ Minimum class complexity1.00
▷ Maximum class complexity125.00
Average method complexity5.62
▷ Minimum method complexity1.00
▷ Maximum method complexity80.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods63
▷ Static methods57.94%
▷ Public methods5587.30%
▷ Protected methods00.00%
▷ Private methods812.70%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/edit-gray.png0.62KB0.66KB0.00%
images/trash.png0.40KB0.25KB▼ 37.53%