68% wptec

Code Review | WordPress Admin Tables Extra Columns : Easy way to create custom columns on WordPress post, page & user admin tables

WordPress plugin WordPress Admin Tables Extra Columns : Easy way to create custom columns on WordPress post, page & user admin tables scored68%from 54 tests.

About plugin

  • Plugin page: wptec
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 15, 2023
  • Latest release: Mar 15, 2023
  • Number of updates: 22
  • Update frequency: every 6.6 days
  • Top authors: javmah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /258 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.57MB] [CPU: ▼1.41ms] Passed 4 tests

An overview of server-side resources used by WordPress Admin Tables Extra Columns : Easy way to create custom columns on WordPress post, page & user admin tables
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.04 ▲0.5841.29 ▼6.20
Dashboard /wp-admin3.88 ▲0.5853.14 ▲4.92
Posts /wp-admin/edit.php3.94 ▲0.5953.92 ▲1.99
Add New Post /wp-admin/post-new.php6.40 ▲0.52100.50 ▼6.36
Media Library /wp-admin/upload.php3.81 ▲0.5844.53 ▲11.74
Tables Extra Columns /wp-admin/options-general.php?page=wptec3.9940.61
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius3.9740.47

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 197 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
fs_active_plugins
fs_accounts
db_upgraded
fs_gdpr
fs_debug_mode
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WordPress Admin Tables Extra Columns : Easy way to create custom columns on WordPress post, page & user admin tables
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,933 ▲19813.58 ▼0.714.72 ▲2.4530.43 ▼12.79
Dashboard /wp-admin2,231 ▲405.86 ▲0.96106.77 ▲1.5044.33 ▲3.52
Posts /wp-admin/edit.php2,124 ▲352.05 ▲0.0142.22 ▲1.7439.36 ▲1.47
Add New Post /wp-admin/post-new.php1,528 ▼523.16 ▼0.08647.88 ▲33.6952.20 ▲0.18
Media Library /wp-admin/upload.php1,412 ▲244.24 ▲0.00108.26 ▲10.8548.04 ▲3.85
Tables Extra Columns /wp-admin/options-general.php?page=wptec1,0122.0131.8451.90
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius1,0731.7324.6626.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/wptec/includes/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 10 options in the database
    • can_compress_scripts
    • fs_active_plugins
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • fs_debug_mode
    • fs_accounts
    • widget_theysaidso_widget
    • fs_gdpr

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% 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
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wptec/includes/class-wptec-deactivator.php
    • > /wp-content/plugins/wptec/public/partials/wptec-public-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wptec/admin/partials/wptec-admin-display.php:19

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: columns, column, admin, admin_table, custom columns

wptec/wptec.php 92% from 13 tests

The principal PHP file in "WordPress Admin Tables Extra Columns : Easy way to create custom columns on WordPress post, page & user admin tables" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Plugin Name: Please don't use more than 70 characters for the plugin name (currently 96 characters long)

Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin43,672 lines of code in 148 files:
LanguageFilesBlank linesComment linesLines of code
PHP1257,88218,62834,711
JavaScript101,1201,5428,947
CSS130814

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity82.97
▷ Minimum class complexity1.00
▷ Maximum class complexity2,911.00
Average method complexity5.02
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes59
▷ Abstract classes23.39%
▷ Concrete classes5796.61%
▷ Final classes00.00%
Methods1,235
▷ Static methods17414.09%
▷ Public methods89072.06%
▷ Protected methods151.21%
▷ Private methods33026.72%
Functions96
▷ Named functions96100.00%
▷ Anonymous functions00.00%
Constants124
▷ Global constants9979.84%
▷ Class constants2520.16%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
includes/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
includes/freemius/assets/img/wptec.png9.16KB5.26KB▼ 42.58%