89% wp-responsive-tables

Code Review | WP Responsive Tables

WordPress plugin WP Responsive Tables scored89%from 54 tests.

About plugin

  • Plugin page: wp-responsive-tables
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.7.1
  • WordPress version: 6.3.1
  • First release: Dec 12, 2016
  • Latest release: Dec 12, 2016
  • Number of updates: 12
  • Update frequency: every 2.4 days
  • Top authors: suifengtec (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,179 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.64ms] Passed 4 tests

A check of server-side resources used by WP Responsive Tables
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.44 ▲1.26
Dashboard /wp-admin3.32 ▲0.0250.80 ▼11.91
Posts /wp-admin/edit.php3.37 ▲0.0259.19 ▲4.23
Add New Post /wp-admin/post-new.php5.90 ▲0.0293.00 ▼16.15
Media Library /wp-admin/upload.php3.24 ▲0.0238.58 ▼3.77

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WP Responsive Tables
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.35 ▼0.021.89 ▲0.2542.37 ▲0.56
Dashboard /wp-admin2,198 ▲215.61 ▲0.0683.76 ▼4.2140.27 ▲2.60
Posts /wp-admin/edit.php2,103 ▲31.98 ▼0.0436.93 ▲1.1737.33 ▲3.70
Add New Post /wp-admin/post-new.php1,526 ▼1122.99 ▲4.87669.44 ▲45.5455.81 ▼12.04
Media Library /wp-admin/upload.php1,400 ▼34.24 ▲0.0398.72 ▼3.1942.06 ▼5.74

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (mobile devices), #2 (tablets), #3 (desktop)
The official readme.txt might help

wp-responsive-tables/cwp-responsive-table.php 77% from 13 tests

Analyzing the main PHP file in "WP Responsive Tables" version 1.0.0
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-responsive-tables.php" instead of "cwp-responsive-table.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected174 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
Markdown121092
PHP1242657
JavaScript152225

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods10
▷ Static methods660.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin