10% wp-table-lookup

Code Review | WP Table Lookup

WordPress plugin WP Table Lookup scored10%from 54 tests.

About plugin

  • Plugin page: wp-table-lookup
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.9
  • WordPress version: 6.3.1
  • First release: Oct 19, 2013
  • Latest release: Aug 11, 2014
  • Number of updates: 17
  • Update frequency: every 17.5 days
  • Top authors: makur.chiranjit@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,883 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.92 ▼2.87
Dashboard /wp-admin3.35 ▲0.0553.53 ▲0.57
Posts /wp-admin/edit.php3.40 ▲0.0549.62 ▼4.15
Add New Post /wp-admin/post-new.php5.95 ▲0.07110.75 ▲17.34
Media Library /wp-admin/upload.php3.28 ▲0.0540.79 ▲3.84
Export Database /wp-admin/admin.php?page=export_database3.2431.89
Tables Lookup /wp-admin/admin.php?page=table_lookup3.2535.06
Run Custom Query /wp-admin/admin.php?page=run_query3.2426.52
Table Structure /wp-admin/admin.php?page=show_table_structure3.2532.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9213.24 ▼1.061.85 ▼0.2444.48 ▼0.27
Dashboard /wp-admin2,232 ▲415.86 ▲0.89103.56 ▼6.7879.13 ▲37.19
Posts /wp-admin/edit.php2,127 ▲352.14 ▲0.1539.50 ▲1.4334.29 ▲0.06
Add New Post /wp-admin/post-new.php1,708 ▲17524.72 ▲1.60687.37 ▼6.1551.35 ▼5.81
Media Library /wp-admin/upload.php1,426 ▲384.16 ▼0.07121.90 ▲17.0351.96 ▲6.65
Export Database /wp-admin/admin.php?page=export_database9112.0423.5126.57
Tables Lookup /wp-admin/admin.php?page=table_lookup8812.0427.8625.41
Run Custom Query /wp-admin/admin.php?page=run_query8212.0426.5323.04
Table Structure /wp-admin/admin.php?page=show_table_structure8632.0426.2124.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

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)
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP43420295
JavaScript10417
CSS1030

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.28
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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