84% my-tables

Code Review | My Tables

WordPress plugin My Tables scored84%from 54 tests.

About plugin

  • Plugin page: my-tables
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Apr 20, 2016
  • Latest release: Sep 11, 2019
  • Number of updates: 10
  • Update frequency: every 123.9 days
  • Top authors: pbimal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,015 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by My Tables
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.68 ▼0.31
Dashboard /wp-admin3.33 ▼0.0250.94 ▼12.98
Posts /wp-admin/edit.php3.38 ▲0.0250.18 ▲0.07
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.35 ▼13.76
Media Library /wp-admin/upload.php3.25 ▲0.0238.15 ▲0.94

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
These are issues you should consider
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/my-tables/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for My Tables
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6813.32 ▼1.031.66 ▼0.0643.00 ▲2.15
Dashboard /wp-admin2,232 ▲295.81 ▼0.05100.82 ▼0.8740.96 ▲0.85
Posts /wp-admin/edit.php2,111 ▲112.01 ▼0.0035.54 ▼0.8832.19 ▼1.79
Add New Post /wp-admin/post-new.php1,561 ▲3518.38 ▲0.84756.01 ▼9.0162.17 ▲4.75
Media Library /wp-admin/upload.php1,411 ▲84.25 ▲0.06102.92 ▲4.0645.85 ▼1.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-tables/classes/class.my_tables.inc.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'my_tables_processor' not found in wp-content/plugins/my-tables/pages/help.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can take inspiration from this readme.txt

my-tables/my-tables.php Passed 13 tests

The principal PHP file in "My Tables" v. 1.0.0 is loaded by WordPress automatically on each request
48 characters long description:
Displays selected fields from SHOW TABLE STATUS;

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
No dangerous file extensions were detected186 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP42532165
CSS15321

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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