10% deemly

Code Review | deemly

WordPress plugin deemly scored 10% from 54 tests.

About plugin

  • Plugin page: deemly
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.7
  • WordPress version: 6.3.1
  • First release: Aug 1, 2016
  • Latest release: Jan 21, 2017
  • Number of updates: 35
  • Update frequency: every 4.9 days
  • Top authors: farvig (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 928 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/deemly/inc/buddypress.php+9
    Trying to access array offset on value of type bool

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

Analyzing server-side resources used by deemly
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.317.06 ▼33.78
Dashboard /wp-admin2.17 ▼1.149.09 ▼40.12
Posts /wp-admin/edit.php2.17 ▼1.199.24 ▼38.48
Add New Post /wp-admin/post-new.php2.17 ▼3.729.06 ▼81.44
Media Library /wp-admin/upload.php2.17 ▼1.069.45 ▼24.70
deemly /wp-admin/admin.php?page=deemly-settings2.179.09
Help /wp-admin/admin.php?page=dmly-help2.177.70

Server storage [IO: ▲0.12MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 9 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by deemly
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9614.47 ▲0.271.69 ▼0.1143.98 ▼3.77
Dashboard /wp-admin2,238 ▲505.89 ▲1.03101.04 ▼12.0941.96 ▼6.43
Posts /wp-admin/edit.php2,118 ▲292.06 ▲0.0436.45 ▼1.4433.89 ▼0.53
Add New Post /wp-admin/post-new.php1,562 ▲4818.47 ▲1.00649.62 ▼33.3354.46 ▼9.30
Media Library /wp-admin/upload.php1,420 ▲384.21 ▼0.0998.72 ▼0.7841.35 ▼2.28
deemly /wp-admin/admin.php?page=deemly-settings9462.1922.6827.59
Help /wp-admin/admin.php?page=dmly-help8462.0221.5827.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/deemly/inc/buddypress.php+9
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_dmly_user_profile_ratings
    • db_upgraded
    • widget_dmly_user_rating_form
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_dmly_user_profile
    • theysaidso_admin_options
    • 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 errors were triggered by the plugin
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=dmly-help
    • > Notice in wp-content/plugins/deemly/inc/buddypress.php+9
    Trying to access array offset on value of type bool
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=dmly-help
    • > Notice in wp-content/plugins/deemly/inc/buddypress.php+19
    Undefined index: dmly_display_bp_activity_feed
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=dmly-help
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
    • > GET request to /wp-admin/admin.php?page=deemly-settings
    • > Notice in wp-content/plugins/deemly/inc/admin/register-settings.php+116
    Undefined index: dmly_site_app_key
    • > GET request to /wp-admin/admin.php?page=deemly-settings
    • > Notice in wp-content/plugins/deemly/inc/admin/register-settings.php+123
    Undefined index: dmly_site_secret_key
    • > GET request to /wp-admin/admin.php?page=deemly-settings
    • > Warning in wp-content/plugins/deemly/inc/admin/admin-pages.php+61
    Invalid argument supplied for foreach()

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/deemly/inc/buddypress.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (21 tag instead of maximum 10)
The official readme.txt is a good inspiration

deemly/deemly-profile-score.php 85% from 13 tests

The primary PHP file in "deemly" version 1.0.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("deemly.php" instead of "deemly-profile-score.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
There were no executable files found in this plugin1,451 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PO File498124293

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity2.25
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions35100.00%
▷ Anonymous functions00.00%
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/deemly-verified.png2.74KB1.91KB▼ 30.53%
assets/img/dmly-score-widget-logo.png20.76KB2.74KB▼ 86.78%
assets/img/dmly-logo.png20.76KB2.74KB▼ 86.78%