84% simple-table-manager

Code Review | Simple Table Manager

WordPress plugin Simple Table Manager scored84%from 54 tests.

About plugin

  • Plugin page: simple-table-manager
  • Plugin version: 1.5.6
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Mar 3, 2015
  • Latest release: Jul 24, 2023
  • Number of updates: 51
  • Update frequency: every 60.1 days
  • Top authors: lorro (52.94%)ryo0inoue (49.02%)

Code review

54 tests

User reviews

4 reviews

Install metrics

800+ active /22,022 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▲0.26ms] Passed 4 tests

Server-side resources used by Simple Table Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1944.21 ▲2.96
Dashboard /wp-admin3.48 ▲0.1746.78 ▼4.59
Posts /wp-admin/edit.php3.59 ▲0.2348.45 ▲1.82
Add New Post /wp-admin/post-new.php6.06 ▲0.1795.06 ▲1.98
Media Library /wp-admin/upload.php3.40 ▲0.1736.00 ▲1.84

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 13 new options
New WordPress options
stm_csv_encoding
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
stm_csv_filename
stm_csv_columns
stm_unserialize
stm_capability
...

Browser metrics Passed 4 tests

Simple Table Manager: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲7913.19 ▼1.194.23 ▲2.1138.87 ▼10.35
Dashboard /wp-admin2,220 ▲354.86 ▼0.02108.26 ▲4.0438.72 ▼2.37
Posts /wp-admin/edit.php2,106 ▲142.00 ▼0.0240.79 ▲0.6135.69 ▲0.38
Add New Post /wp-admin/post-new.php1,549 ▲1618.20 ▼5.07617.42 ▼52.0658.83 ▼10.20
Media Library /wp-admin/upload.php1,405 ▲204.23 ▲0.0098.07 ▼2.5343.70 ▼2.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 13 options
    • stm_table
    • widget_recent-posts
    • theysaidso_admin_options
    • stm_unserialize
    • stm_csv_filename
    • widget_recent-comments
    • stm_csv_columns
    • can_compress_scripts
    • stm_csv_encoding
    • stm_capability
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 9× PHP files output text when accessed directly:
    • > /wp-content/plugins/simple-table-manager/includes/functions.php
    • > /wp-content/plugins/simple-table-manager/includes/add.php
    • > /wp-content/plugins/simple-table-manager/includes/main.php
    • > /wp-content/plugins/simple-table-manager/includes/list.php
    • > /wp-content/plugins/simple-table-manager/includes/edit.php
    • > /wp-content/plugins/simple-table-manager/includes/export-csv.php
    • > /wp-content/plugins/simple-table-manager/includes/tables.php
    • > /wp-content/plugins/simple-table-manager/simple-table-manager.php
    • > /wp-content/plugins/simple-table-manager/includes/columns.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: You can look at the official readme.txt

simple-table-manager/simple-table-manager.php Passed 13 tests

Analyzing the main PHP file in "Simple Table Manager" version 1.5.6
119 characters long description:
Enables editing table records and exporting them to CSV files through a minimal database interface from your dashboard.

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 detected1,272 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP10121951,104
PO File14142110
CSS19558

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin