84% weedly

Code Review | Weedly

WordPress plugin Weedly scored84%from 54 tests.

About plugin

  • Plugin page: weedly
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.3
  • WordPress version: 6.3.1
  • First release: Jul 28, 2019
  • Latest release: Oct 24, 2019
  • Number of updates: 32
  • Update frequency: every 2.8 days
  • Top authors: meristemcreative (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,884 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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.24ms] Passed 4 tests

An overview of server-side resources used by Weedly
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.54 ▼3.40
Dashboard /wp-admin3.31 ▲0.0161.16 ▲6.96
Posts /wp-admin/edit.php3.36 ▲0.0149.37 ▼2.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.64 ▼6.31
Media Library /wp-admin/upload.php3.24 ▲0.0137.61 ▼0.61

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Weedly: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.26 ▼1.146.30 ▲4.4645.30 ▼1.69
Dashboard /wp-admin2,203 ▲155.92 ▲1.03112.09 ▼5.0841.03 ▼2.15
Posts /wp-admin/edit.php2,089 ▼32.05 ▼0.0041.78 ▲2.1034.99 ▼2.41
Add New Post /wp-admin/post-new.php1,514 ▼017.42 ▼0.08655.72 ▲10.3356.68 ▲7.41
Media Library /wp-admin/upload.php1,391 ▲94.14 ▼0.21104.52 ▼3.6849.74 ▲4.87

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/weedly/weedly.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Displaying Tiles Events screenshot-1.png.), #2 (Displaying List Events screenshot-2.png.), #3 (Displaying Vendor Days Tiles screenshot-3.png.)
The official readme.txt is a good inspiration

weedly/weedly.php 92% from 13 tests

The main PHP file in "Weedly" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 181 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin48 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1281142
JavaScript21176

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected