72% wp-table-view

Code Review | WP Table View

WordPress plugin WP Table View scored72%from 54 tests.

About plugin

  • Plugin page: wp-table-view
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jun 28, 2017
  • Latest release: Jun 28, 2017
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: shivrajib (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /673 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.23ms] Passed 4 tests

This is a short check of server-side resources used by WP Table View
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.46 ▼0.29
Dashboard /wp-admin3.33 ▲0.0350.79 ▼1.29
Posts /wp-admin/edit.php3.38 ▲0.0250.61 ▼1.31
Add New Post /wp-admin/post-new.php5.94 ▲0.05120.25 ▲20.62
Media Library /wp-admin/upload.php3.25 ▲0.0237.54 ▲1.95
Add New Table View /wp-admin/post-new.php?post_type=wptv3.1133.93
All Table Views /wp-admin/edit.php?post_type=wptv3.3041.47

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WP Table View
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲17513.99 ▼0.3611.62 ▲9.7643.17 ▼4.68
Dashboard /wp-admin2,230 ▲535.63 ▼0.0490.60 ▲3.0438.76 ▼4.42
Posts /wp-admin/edit.php2,132 ▲352.16 ▲0.1535.43 ▼1.3433.20 ▼0.82
Add New Post /wp-admin/post-new.php1,557 ▲2923.37 ▲0.21649.78 ▼45.4453.97 ▼1.62
Media Library /wp-admin/upload.php1,438 ▲384.30 ▲0.10103.08 ▲4.4145.36 ▲1.83
Add New Table View /wp-admin/post-new.php?post_type=wptv1,8802.9062.2047.34
All Table Views /wp-admin/edit.php?post_type=wptv1,0961.9935.0234.48

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=wptv
    • > User notice in wp-includes/functions.php+5905
    Function map_meta_cap was called incorrectly. When checking for the edit_post capability, you must always check it against a specific post. Please see Debugging in WordPress for more information. (This message was added in version 6.1.0.)

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
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-table-view/wptv-shortcode.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-table-view/wptv-shortcode.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/post-new.php?post_type=wptv
    • > Network (severe)
    wp-content/plugins/wp-table-view/css/images/ui-icons_ffffff_256x240.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/post-new.php?post_type=wptv
    • > Network (severe)
    wp-content/plugins/wp-table-view/css/images/ui-icons_444444_256x240.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: table generation, table view, table

wp-table-view/wp-table-view.php 92% from 13 tests

"WP Table View" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin1,947 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS341521,231
PHP35934509
JavaScript2312206
Markdown1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity9.67
▷ Minimum method complexity2.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin