89% davsy

Code Review | Davsy

WordPress plugin Davsy scored89%from 54 tests.

About plugin

  • Plugin page: davsy
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9.7
  • WordPress version: 6.3.1
  • First release: Jul 19, 2018
  • Latest release: Aug 1, 2018
  • Number of updates: 20
  • Update frequency: every 0.7 days
  • Top authors: smshivamsm (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /8,657 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.33ms] Passed 4 tests

Analyzing server-side resources used by Davsy
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0945.77 ▲2.47
Dashboard /wp-admin3.38 ▲0.0847.86 ▲0.42
Posts /wp-admin/edit.php3.49 ▲0.1454.22 ▲6.43
Add New Post /wp-admin/post-new.php5.98 ▲0.1084.35 ▼15.52
Media Library /wp-admin/upload.php3.30 ▲0.0838.58 ▼0.69

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
widget_davsy_widget
wp_davsy
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Davsy: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲10113.25 ▼1.175.45 ▲3.2640.34 ▼4.85
Dashboard /wp-admin2,224 ▲365.86 ▼0.02100.66 ▼8.4240.62 ▲1.66
Posts /wp-admin/edit.php2,107 ▲182.03 ▲0.0240.44 ▲1.9136.00 ▼3.70
Add New Post /wp-admin/post-new.php1,543 ▼12423.27 ▲1.46652.42 ▼15.8168.49 ▲21.79
Media Library /wp-admin/upload.php1,406 ▲184.24 ▲0.0295.14 ▼15.6242.83 ▲0.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_davsy_widget
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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
These attributes need to be fixed:
  • Screenshots: These screenshots lack descriptions #1, #2 in davsy/assets to your readme.txt
You can look at the official readme.txt

davsy/davsy.php 85% from 13 tests

The entry point to "Davsy" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please use more than 10 characters for the plugin description (currently 5 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin365 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP48962303
CSS14746
JavaScript26016

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity11.00
▷ Minimum class complexity4.00
▷ Maximum class complexity20.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods211.76%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin