84% usagedd

Code Review | UsageDD

WordPress plugin UsageDD scored84%from 54 tests.

About plugin

  • Plugin page: usagedd
  • Plugin version: 2.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 29, 2017
  • Latest release: Jul 22, 2023
  • Number of updates: 53
  • Update frequency: every 44.6 days
  • Top authors: DionDesigns (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

2,000+ active /40,033 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼11.43MB] [CPU: ▼2,371,006.89ms] Passed 4 tests

Analyzing server-side resources used by UsageDD
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▼45.9240.56 ▼9,484,008.49
Dashboard /wp-admin3.40 ▲0.0550.62 ▼1.22
Posts /wp-admin/edit.php3.50 ▲0.1057.97 ▲5.00
Add New Post /wp-admin/post-new.php6.06 ▲0.1384.38 ▼18.56
Media Library /wp-admin/upload.php3.32 ▲0.0538.97 ▲0.72

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

UsageDD: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲5214.16 ▼0.331.86 ▲0.1244.01 ▲3.42
Dashboard /wp-admin2,207 ▲275.62 ▼0.0586.80 ▼4.2144.02 ▼2.83
Posts /wp-admin/edit.php2,112 ▲92.03 ▲0.0132.97 ▼14.3037.44 ▼1.78
Add New Post /wp-admin/post-new.php1,553 ▲2520.76 ▼2.17710.08 ▲62.9155.51 ▲6.87
Media Library /wp-admin/upload.php1,409 ▲124.22 ▲0.05143.40 ▲46.3358.90 ▲12.50

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

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 | 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/usagedd/usagedd.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: monitor, memory, cpu, mysql, resource...

usagedd/usagedd.php Passed 13 tests

"UsageDD" version 2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
44 characters long description:
Displays usage information to administrators

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 plugin35 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192535

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin