84% wp-table-tag-gen

Code Review | WP Table Tag Gen

WordPress plugin WP Table Tag Gen scored84%from 54 tests.

About plugin

  • Plugin page: wp-table-tag-gen
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 30, 2014
  • Latest release: May 9, 2015
  • Number of updates: 40
  • Update frequency: every 7.1 days
  • Top authors: shunk (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /4,925 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Server-side resources used by WP Table Tag Gen
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.32 ▼5.49
Dashboard /wp-admin3.31 ▼0.0451.26 ▼11.04
Posts /wp-admin/edit.php3.36 ▲0.0046.40 ▲1.79
Add New Post /wp-admin/post-new.php5.90 ▲0.0296.20 ▲3.61
Media Library /wp-admin/upload.php3.23 ▲0.0033.92 ▲0.51

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Table Tag Gen
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.41 ▼0.971.70 ▼0.1242.31 ▲0.58
Dashboard /wp-admin2,206 ▲184.90 ▼0.98105.60 ▼9.1939.67 ▼5.36
Posts /wp-admin/edit.php2,086 ▼32.00 ▼0.0040.69 ▲6.5234.61 ▼1.37
Add New Post /wp-admin/post-new.php1,658 ▲14418.31 ▲0.88617.26 ▼62.1156.28 ▼0.17
Media Library /wp-admin/upload.php1,382 ▼64.28 ▲0.0695.06 ▼19.4941.98 ▼8.68

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/wp-table-tag-gen/wp-table-tag-gen.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (HTML editor), #2 (WP Table Tag Gen)
You can take inspiration from this readme.txt

wp-table-tag-gen/wp-table-tag-gen.php Passed 13 tests

The main file in "WP Table Tag Gen" v. 1.0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
56 characters long description:
This plugin generates table tags with simple operations.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,013 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript213462702
CSS2326144
PHP1182493
PO File1283074

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.11MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png62.38KB24.70KB▼ 60.40%
screenshot-1.png53.13KB53.08KB0.10%