84% saturn-tables

Code Review | Saturn Tables

WordPress plugin Saturn Tables scored84%from 54 tests.

About plugin

  • Plugin page: saturn-tables
  • Plugin version: 1.2.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 24, 2020
  • Latest release: Jul 11, 2023
  • Number of updates: 22
  • Update frequency: every 42.2 days
  • Top authors: saturntables (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /520 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼1.84ms] Passed 4 tests

Server-side resources used by Saturn Tables
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.43 ▼5.48
Dashboard /wp-admin3.40 ▲0.0946.93 ▼1.96
Posts /wp-admin/edit.php3.51 ▲0.1549.54 ▲2.15
Add New Post /wp-admin/post-new.php5.98 ▲0.0994.09 ▼1.50
Media Library /wp-admin/upload.php3.32 ▲0.0936.44 ▲1.58

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

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

Browser metrics Passed 4 tests

Saturn Tables: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.30 ▼1.094.13 ▲2.0638.52 ▼11.00
Dashboard /wp-admin2,206 ▲154.85 ▼0.02110.14 ▲11.8045.50 ▲4.46
Posts /wp-admin/edit.php2,086 ▼31.97 ▼0.0239.25 ▲2.8835.06 ▲0.12
Add New Post /wp-admin/post-new.php1,542 ▲2323.23 ▲0.05586.26 ▼65.9058.68 ▲3.26
Media Library /wp-admin/upload.php1,391 ▼04.27 ▲0.1093.51 ▼6.0542.98 ▲0.04

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/saturn-tables/classes/saturn_tables_list_table_extend.class.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/saturn-tables/plugin_loader.php:13
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/saturn-tables/classes/saturn_tables_list_table_extend.class.php on line 11
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/saturn-tables/classes/saturn_tables_list_table_extend.class.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'Saturn_Tables_List_Table_Render' not found in wp-content/plugins/saturn-tables/classes/saturn_tables_input_form_render.class.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: data tables, data sources, list tables

saturn-tables/plugin_loader.php 85% from 13 tests

The main PHP file in "Saturn Tables" ver. 1.2.6 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 160 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("saturn-tables.php" instead of "plugin_loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin520 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5222103520

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.65
Average class complexity51.00
▷ Minimum class complexity23.00
▷ Maximum class complexity74.00
Average method complexity6.36
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods28
▷ Static methods13.57%
▷ Public methods2796.43%
▷ Protected methods13.57%
▷ 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 were not PNG files found in your plugin