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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 39.33 ▲0.07 |
Dashboard /wp-admin | 3.66 ▲0.36 | 51.18 ▲2.80 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 50.34 ▼0.49 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 94.91 ▼3.43 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 41.05 ▲6.33 |
Your Table Fields /wp-admin/admin.php?page=your-tables-table-wp_your_tables_fields | 3.47 | 35.88 |
Your Tables /wp-admin/admin.php?page=your-tables-table-wp_your_tables | 3.47 | 35.47 |
Your Tables Settings /wp-admin/options-general.php?page=your_tables_admin_settings_page | 3.51 | 65.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲109 | 13.69 ▼0.75 | 4.30 ▲2.67 | 41.74 ▼6.01 |
Dashboard /wp-admin | 2,250 ▲62 | 4.94 ▲0.06 | 109.51 ▼2.89 | 39.75 ▼0.86 |
Posts /wp-admin/edit.php | 2,136 ▲44 | 2.08 ▲0.11 | 43.46 ▲2.96 | 37.22 ▲1.95 |
Add New Post /wp-admin/post-new.php | 1,550 ▲30 | 23.15 ▲0.14 | 690.02 ▲27.05 | 64.14 ▲15.02 |
Media Library /wp-admin/upload.php | 1,432 ▲44 | 4.25 ▲0.06 | 97.00 ▼5.18 | 41.52 ▼2.61 |
Your Table Fields /wp-admin/admin.php?page=your-tables-table-wp_your_tables_fields | 1,630 | 1.93 | 29.71 | 34.65 |
Your Tables /wp-admin/admin.php?page=your-tables-table-wp_your_tables | 872 | 1.93 | 24.91 | 25.72 |
Your Tables Settings /wp-admin/options-general.php?page=your_tables_admin_settings_page | 926 | 1.80 | 25.10 | 27.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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 244 | 558 | 1,440 |
PO File | 2 | 228 | 262 | 482 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
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 code | 0.47 |
Average class complexity | 25.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 5.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 80.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 5 | 7.94% |
▷ Public methods | 55 | 87.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 12.70% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/edit-gray.png | 0.62KB | 0.66KB | 0.00% |
images/trash.png | 0.40KB | 0.25KB | ▼ 37.53% |