Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'my_plugin_plugin_install' not found or invalid function name
Server metrics [RAM: ▲0.05MB] [CPU: ▼0.65ms] Passed 4 tests
Server-side resources used by WP Table Lookup
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.92 ▼2.87 |
Dashboard /wp-admin | 3.35 ▲0.05 | 53.53 ▲0.57 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 49.62 ▼4.15 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 110.75 ▲17.34 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 40.79 ▲3.84 |
Export Database /wp-admin/admin.php?page=export_database | 3.24 | 31.89 |
Tables Lookup /wp-admin/admin.php?page=table_lookup | 3.25 | 35.06 |
Run Custom Query /wp-admin/admin.php?page=run_query | 3.24 | 26.52 |
Table Structure /wp-admin/admin.php?page=show_table_structure | 3.25 | 32.65 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Table Lookup
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲92 | 13.24 ▼1.06 | 1.85 ▼0.24 | 44.48 ▼0.27 |
Dashboard /wp-admin | 2,232 ▲41 | 5.86 ▲0.89 | 103.56 ▼6.78 | 79.13 ▲37.19 |
Posts /wp-admin/edit.php | 2,127 ▲35 | 2.14 ▲0.15 | 39.50 ▲1.43 | 34.29 ▲0.06 |
Add New Post /wp-admin/post-new.php | 1,708 ▲175 | 24.72 ▲1.60 | 687.37 ▼6.15 | 51.35 ▼5.81 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.16 ▼0.07 | 121.90 ▲17.03 | 51.96 ▲6.65 |
Export Database /wp-admin/admin.php?page=export_database | 911 | 2.04 | 23.51 | 26.57 |
Tables Lookup /wp-admin/admin.php?page=table_lookup | 881 | 2.04 | 27.86 | 25.41 |
Run Custom Query /wp-admin/admin.php?page=run_query | 821 | 2.04 | 26.53 | 23.04 |
Table Structure /wp-admin/admin.php?page=show_table_structure | 863 | 2.04 | 26.21 | 24.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'my_plugin_plugin_remove' not found or invalid function name
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-table-lookup/run_query.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Trying to get property 'dbname' of non-object in wp-content/plugins/wp-table-lookup/show_tables_structure.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-table-lookup/wp-table-lookup.php:14
- > PHP Notice
Trying to get property 'dbname' of non-object in wp-content/plugins/wp-table-lookup/show_tables.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-table-lookup/show_tables_structure.php:6
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-table-lookup/show_tables.php:6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Sample Image)
wp-table-lookup/wp-table-lookup.php 92% from 13 tests
The main file in "WP Table Lookup" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 144 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin312 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 34 | 20 | 295 |
JavaScript | 1 | 0 | 4 | 17 |
CSS | 1 | 0 | 3 | 0 |
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.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin