78% divvyhq

Code Review | DivvyHQ

WordPress plugin DivvyHQ scored78%from 54 tests.

About plugin

  • Plugin page: divvyhq
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8.3
  • WordPress version: 6.3.1
  • First release: Apr 17, 2018
  • Latest release: Feb 17, 2022
  • Number of updates: 18
  • Update frequency: every 78.1 days
  • Top authors: nmallare (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,456 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.89ms] Passed 4 tests

An overview of server-side resources used by DivvyHQ
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.03 ▲0.66
Dashboard /wp-admin3.35 ▲0.0152.06 ▼7.50
Posts /wp-admin/edit.php3.45 ▲0.0953.76 ▲4.89
Add New Post /wp-admin/post-new.php5.95 ▲0.0786.62 ▼13.19
Media Library /wp-admin/upload.php3.28 ▲0.0540.12 ▲4.47
DivvyHQ /wp-admin/options-general.php?page=DivvyHQ3.2835.14

Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
  • Illegal file modification found: 1 file (0.73KB) outside of "wp-content/plugins/divvyhq/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

DivvyHQ: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲1114.72 ▲0.821.62 ▼0.2039.89 ▼0.60
Dashboard /wp-admin2,203 ▲235.53 ▼0.0184.53 ▼3.8241.57 ▼0.34
Posts /wp-admin/edit.php2,108 ▲82.01 ▲0.0636.62 ▼1.0534.28 ▼1.32
Add New Post /wp-admin/post-new.php1,533 ▲223.09 ▼0.10663.58 ▼1.3865.03 ▲13.05
Media Library /wp-admin/upload.php1,411 ▲174.20 ▼0.0398.69 ▲1.4343.73 ▲2.90
DivvyHQ /wp-admin/options-general.php?page=DivvyHQ8002.0024.6124.78

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
    • > GET request to /wp-admin/options-general.php?page=DivvyHQ
    • > Notice in wp-content/plugins/divvyhq/admin/partials/divvyhq-display.php+33
    Trying to access array offset on value of type bool

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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/divvyhq/admin/partials/divvyhq-display.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: divvyhq

divvyhq/divvyhq.php 92% from 13 tests

The main file in "DivvyHQ" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected292 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP1089453289
JavaScript1233
CSS1030

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.67
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.34
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2586.21%
▷ Protected methods00.00%
▷ Private methods413.79%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 are no PNG files in this plugin