68% edoc-easy-tables

Code Review | eDoc Easy Tables - Best WordPress Table Maker

WordPress plugin eDoc Easy Tables - Best WordPress Table Maker scored68%from 54 tests.

About plugin

  • Plugin page: edoc-easy-tables
  • Plugin version: 1.29
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7
  • WordPress version: 6.3.1
  • First release: Nov 17, 2016
  • Latest release: Mar 12, 2021
  • Number of updates: 35
  • Update frequency: every 45.3 days
  • Top authors: jerodmoore (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /4,099 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 successfully, without throwing any errors or notices

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

Server-side resources used by eDoc Easy Tables - Best WordPress Table Maker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.87 ▲1.65
Dashboard /wp-admin3.32 ▲0.0246.71 ▼2.42
Posts /wp-admin/edit.php3.37 ▲0.0247.43 ▼0.58
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.51 ▼15.58
Media Library /wp-admin/upload.php3.24 ▲0.0235.95 ▲0.85
eDoc Tables /wp-admin/admin.php?page=dp-table-admin3.1931.09
Edit Tables /wp-admin/admin.php?page=edit-tables3.1939.00

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 26 new files
Database: 1 new table, 6 new options
New tables
wp_edoc_tables
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for eDoc Easy Tables - Best WordPress Table Maker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9614.60 ▲0.641.76 ▼0.1144.31 ▼2.28
Dashboard /wp-admin2,235 ▲444.94 ▲0.0698.27 ▼10.6884.65 ▲44.55
Posts /wp-admin/edit.php2,115 ▲262.00 ▲0.0135.74 ▲0.2533.74 ▼3.53
Add New Post /wp-admin/post-new.php1,536 ▲1517.58 ▼5.46687.15 ▲81.6551.36 ▼5.18
Media Library /wp-admin/upload.php1,414 ▲324.19 ▼0.02100.13 ▲1.6145.88 ▲5.84
eDoc Tables /wp-admin/admin.php?page=dp-table-admin1,4109.71298.3553.65
Edit Tables /wp-admin/admin.php?page=edit-tables8012.0925.8326.01

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_edoc_tables
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=edit-tables
    • > Notice in wp-content/plugins/edoc-easy-tables/edoc-tables.php+179
    Undefined index: table-id
    • > GET request to /wp-admin/admin.php?page=dp-table-admin
    • > Notice in wp-content/plugins/edoc-easy-tables/edoc-tables.php+67
    Undefined index: actions

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 add_action() in wp-content/plugins/edoc-easy-tables/edoc-tables.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Requires php: Version format is invalid
The official readme.txt is a good inspiration

edoc-easy-tables/edoc-tables.php 92% from 13 tests

The main PHP file in "eDoc Easy Tables - Best WordPress Table Maker" ver. 1.29 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("edoc-easy-tables.php" instead of "edoc-tables.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,089 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP37717769
CSS466224
JavaScript3151096

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity47.00
▷ Minimum class complexity47.00
▷ Maximum class complexity47.00
Average method complexity10.20
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/delete.png0.70KB0.72KB0.00%
images/flag.png3.75KB1.26KB▼ 66.32%
images/move.png1.00KB0.16KB▼ 83.80%
images/icon-48-config.png4.04KB2.30KB▼ 43.15%
images/icon-48-dashboard.png4.04KB2.30KB▼ 43.15%