83% wp-simple-table

Code Review | WP Simple Table

WordPress plugin WP Simple Table scored 83% from 54 tests.

About plugin

  • Plugin page: wp-simple-table
  • Plugin version: 1.1
  • PHP compatiblity: 4.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.1.1
  • WordPress version: 6.3.1
  • First release: Mar 26, 2019
  • Latest release: Jun 18, 2019
  • Number of updates: 14
  • Update frequency: every 6.0 days
  • Top authors: raihan143 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 804 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by WP Simple Table
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.52 ▲1.40
Dashboard /wp-admin3.32 ▲0.0148.77 ▲1.88
Posts /wp-admin/edit.php3.37 ▲0.0141.13 ▼2.35
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.22 ▼1.96
Media Library /wp-admin/upload.php3.24 ▲0.0133.82 ▲0.13

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

WP Simple Table: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲8713.29 ▼1.084.74 ▲2.5345.09 ▼4.08
Dashboard /wp-admin2,229 ▲415.85 ▲0.9398.41 ▼22.2443.54 ▼3.31
Posts /wp-admin/edit.php2,109 ▲202.00 ▲0.0134.80 ▼2.4135.00 ▲0.58
Add New Post /wp-admin/post-new.php1,540 ▲718.46 ▼4.53609.39 ▼55.4148.99 ▼15.39
Media Library /wp-admin/upload.php1,408 ▲204.18 ▲0.0496.92 ▲0.8643.61 ▼0.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely 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_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: notify in wp-content/plugins/wp-simple-table/inc/table-content.php on line 55
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-simple-table/inc/table-content.php:68

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • License uri: Please fix this invalid url: ""
You can take inspiration from this readme.txt

wp-simple-table/simple-table.php 77% from 13 tests

The primary PHP file in "WP Simple Table" version 1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-simple-table.php" instead of "simple-table.php")
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected320 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP64019238
CSS220669
JavaScript10013

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin