84% wp-get-the-table

Code Review | WP Get The Table

WordPress plugin WP Get The Table scored84%from 54 tests.

About plugin

  • Plugin page: wp-get-the-table
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Jan 11, 2017
  • Latest release: Jan 31, 2019
  • Number of updates: 6
  • Update frequency: every 124.7 days
  • Top authors: jonsisk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,178 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.44ms] Passed 4 tests

Server-side resources used by WP Get The Table
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0147.37 ▲7.69
Dashboard /wp-admin3.32 ▲0.0252.49 ▼4.68
Posts /wp-admin/edit.php3.37 ▲0.0151.00 ▼6.71
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.73 ▼21.06
Media Library /wp-admin/upload.php3.24 ▲0.0138.18 ▲2.69

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

WP Get The Table: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.31 ▼0.281.70 ▼0.0743.42 ▲0.30
Dashboard /wp-admin2,195 ▲155.65 ▲0.0293.23 ▲6.2643.14 ▼0.94
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0434.42 ▼5.6533.52 ▼4.95
Add New Post /wp-admin/post-new.php1,531 ▲523.13 ▼0.02676.00 ▼0.7274.69 ▲16.15
Media Library /wp-admin/upload.php1,403 ▲34.26 ▲0.06100.09 ▼6.3847.12 ▼2.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-get-the-table/wp-get-the-table.php:120

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === wp-get-the-table === )
You can look at the official readme.txt

wp-get-the-table/wp-get-the-table.php 92% from 13 tests

The main PHP script in "WP Get The Table" version 1.5 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 173 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected95 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1222771
JavaScript201324

PHP code Passed 2 tests

Analyzing 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.43
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin