84% dable

Code Review | Dable

WordPress plugin Dable scored 84% from 54 tests.

About plugin

  • Plugin page: dable
  • Plugin version: 3.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Jul 17, 2017
  • Latest release: Jul 11, 2023
  • Number of updates: 65
  • Update frequency: every 34.2 days
  • Top authors: dabledev (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active / 5,015 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.81ms] Passed 4 tests

A check of server-side resources used by Dable
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0946.90 ▲3.33
Dashboard /wp-admin3.40 ▲0.1047.31 ▼3.53
Posts /wp-admin/edit.php3.51 ▲0.1653.91 ▲4.45
Add New Post /wp-admin/post-new.php5.98 ▲0.0987.91 ▼17.23
Media Library /wp-admin/upload.php3.32 ▲0.0936.36 ▲2.21

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
dable-og-settings
db_upgraded
widget_dable_widget
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Dable
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲12413.18 ▼1.101.59 ▼0.1637.19 ▼7.97
Dashboard /wp-admin2,265 ▲775.87 ▲0.96102.32 ▲2.9737.30 ▼7.62
Posts /wp-admin/edit.php2,149 ▲572.07 ▲0.0541.68 ▲1.1535.79 ▼0.05
Add New Post /wp-admin/post-new.php1,546 ▲1823.17 ▼0.04654.40 ▼10.9352.54 ▼0.69
Media Library /wp-admin/upload.php1,450 ▲594.30 ▲0.1594.67 ▼3.7644.42 ▲0.14

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
These items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_dable_widget
    • widget_recent-comments
    • dable-og-settings

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/dable/dable-for-wordpress.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dable/class.dable-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dable/lib/functions.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/dable/views/settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Dable WordPress Plugin) image required
The official readme.txt is a good inspiration

dable/dable-for-wordpress.php 92% from 13 tests

The main PHP file in "Dable" ver. 3.3.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("dable.php" instead of "dable-for-wordpress.php")

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,569 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP710164740
PO File5235261653
CSS1120147
JavaScript16129

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity17.67
▷ Minimum class complexity8.00
▷ Maximum class complexity33.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods315.00%
▷ Public methods1890.00%
▷ Protected methods210.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.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