68% interactive-excel-tables

Code Review | Excel tables

WordPress plugin Excel tables scored68%from 54 tests.

About plugin

  • Plugin page: interactive-excel...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Mar 30, 2018
  • Latest release: May 10, 2018
  • Number of updates: 6
  • Update frequency: every 6.8 days
  • Top authors: veradeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,439 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.00MB] [CPU: ▼47.30ms] Passed 4 tests

This is a short check of server-side resources used by Excel tables
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.99 ▼0.4819.91 ▼22.33
Dashboard /wp-admin3.02 ▼0.3218.26 ▼45.48
Posts /wp-admin/edit.php3.02 ▼0.3316.46 ▼33.70
Add New Post /wp-admin/post-new.php3.02 ▼2.8617.88 ▼87.68
Media Library /wp-admin/upload.php3.02 ▼0.2015.85 ▼18.72
All tables /wp-admin/edit.php?post_type=extable3.0316.80
Add table /wp-admin/post-new.php?post_type=extable3.0317.94

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Excel tables
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,982 ▲23614.88 ▲0.511.95 ▲0.1941.68 ▼2.40
Dashboard /wp-admin2,384 ▲1996.42 ▲1.49124.07 ▲7.5740.11 ▼6.76
Posts /wp-admin/edit.php2,290 ▲2013.44 ▲1.3444.92 ▲8.1228.69 ▼4.97
Add New Post /wp-admin/post-new.php1,557 ▲3823.47 ▲0.09659.52 ▲43.2338.71 ▼21.55
Media Library /wp-admin/upload.php1,423 ▲324.14 ▼0.0880.69 ▼20.7942.05 ▼2.66
All tables /wp-admin/edit.php?post_type=extable1,2743.3744.4629.64
Add table /wp-admin/post-new.php?post_type=extable1,6773.5363.8337.09

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/interactive-excel-tables/inc/simplexlsx.class.php+696
    Array and string offset access syntax with curly braces is deprecated
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=extable
    • > Deprecated in wp-content/plugins/interactive-excel-tables/inc/simplexlsx.class.php+696
    Array and string offset access syntax with curly braces is deprecated
    • > GET request to /wp-admin/post-new.php?post_type=extable
    • > Notice in wp-content/plugins/interactive-excel-tables/excel-tables.php+131
    Undefined variable: html

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/interactive-excel-tables/excel-tables.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

interactive-excel-tables/excel-tables.php 92% from 13 tests

"Excel tables" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("interactive-excel-tables.php" instead of "excel-tables.php")

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
Success! There were no dangerous files found in this plugin877 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2203255762
CSS215164
JavaScript111051

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity105.00
▷ Minimum class complexity105.00
▷ Maximum class complexity105.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2284.62%
▷ Protected methods00.00%
▷ Private methods415.38%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants233.33%
▷ Class constants466.67%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected