79% detabess

Code Review | detabess

WordPress plugin detabess scored 79% from 54 tests.

About plugin

  • Plugin page: detabess
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-6.2
  • WordPress version: 6.3.1
  • First release: Aug 2, 2021
  • Latest release: May 22, 2023
  • Number of updates: 16
  • Update frequency: every 47.6 days
  • Top authors: eclouds (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 552 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.57ms] Passed 4 tests

Analyzing server-side resources used by detabess
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.50 ▲1.51
Dashboard /wp-admin3.36 ▲0.0646.65 ▼4.02
Posts /wp-admin/edit.php3.41 ▲0.0646.51 ▼4.96
Add New Post /wp-admin/post-new.php5.96 ▲0.0888.97 ▼14.79
Media Library /wp-admin/upload.php3.28 ▲0.0536.81 ▲6.08
Registration List /wp-admin/admin.php?page=dtbs_list3.2530.46
detabess /wp-admin/admin.php?page=detabess3.2529.12
Manage items /wp-admin/admin.php?page=dtbs_item_mng3.2530.37
Resister detabess /wp-admin/admin.php?page=dtbs_reg3.2330.38

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 53 new files
Database: 5 new tables, 7 new options
New tables
wp_dtbs_detail
wp_dtbs_target
wp_dtbs_item
wp_dtbs_match
wp_dtbs
New WordPress options
widget_recent-posts
widget_recent-comments
widget_dtbs_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for detabess
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲17414.06 ▼0.498.81 ▲6.9142.50 ▲1.03
Dashboard /wp-admin2,251 ▲634.92 ▲0.04116.11 ▲13.8842.59 ▼3.25
Posts /wp-admin/edit.php2,135 ▲462.27 ▲0.2236.45 ▼6.9834.04 ▼1.24
Add New Post /wp-admin/post-new.php1,563 ▲3023.43 ▲0.31661.12 ▲12.3649.06 ▼5.31
Media Library /wp-admin/upload.php1,424 ▲364.34 ▲0.1799.08 ▼1.2543.74 ▼1.71
Registration List /wp-admin/admin.php?page=dtbs_list8231.8525.8422.91
detabess /wp-admin/admin.php?page=detabess1,3481.9127.8538.74
Manage items /wp-admin/admin.php?page=dtbs_item_mng8271.8625.3722.98
Resister detabess /wp-admin/admin.php?page=dtbs_reg1,3922.2534.3226.74

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_dtbs_widget
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=dtbs_reg
    • > Notice in wp-content/plugins/detabess/detabess-reg.php+452
    Undefined variable: cd_id

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 fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/detabess/detabess-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/detabess/detabess-functions.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: relation, database, data, search, list

detabess/detabess.php Passed 13 tests

The main PHP script in "detabess" version 1.0.4 is automatically included on every request by WordPress
102 characters long description:
Once you customized your original search lists on posts, convenience level of searching will boost up.

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
Success! There were no dangerous files found in this plugin4,261 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP95304332,361
JavaScript2164361,024
CSS21442864
SVG10012

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity9.25
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions67
▷ Named functions67100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
34 compressed PNG files occupy 0.93MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/info/lang/ja/007.png36.76KB38.84KB0.00%
images/info/lang/ko_KR/004.png42.58KB44.97KB0.00%
images/info/common/bg_visual.png8.32KB6.80KB▼ 18.29%
images/info/lang/en_US/004.png50.64KB53.00KB0.00%
images/info/lang/de_DE/006.png54.27KB56.79KB0.00%