84% draft-concluder

Code Review | Draft Concluder

WordPress plugin Draft Concluder scored84%from 54 tests.

About plugin

  • Plugin page: draft-concluder
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: Nov 9, 2020
  • Latest release: Jul 22, 2023
  • Number of updates: 35
  • Update frequency: every 28.3 days
  • Top authors: dartiss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /746 total downloads

Benchmarks

Plugin footprint 83% 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.09MB] [CPU: ▲0.64ms] Passed 4 tests

An overview of server-side resources used by Draft Concluder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0975.88 ▲37.08
Dashboard /wp-admin3.40 ▲0.1047.97 ▲3.37
Posts /wp-admin/edit.php3.45 ▲0.0950.45 ▼0.28
Add New Post /wp-admin/post-new.php5.98 ▲0.0986.69 ▼0.10
Media Library /wp-admin/upload.php3.32 ▲0.0935.46 ▼0.44

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
draft_concluder_prev_time
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Draft Concluder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.46 ▲0.101.78 ▲0.0042.98 ▼6.91
Dashboard /wp-admin2,209 ▲214.84 ▼1.07100.38 ▼15.7636.65 ▼9.40
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0641.12 ▲6.6236.94 ▲8.46
Add New Post /wp-admin/post-new.php1,533 ▼023.03 ▼0.26650.58 ▼35.3266.86 ▲8.44
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0497.21 ▼9.6840.97 ▼1.11

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 add_filter() in wp-content/plugins/draft-concluder/draft-concluder.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: reminder, email, drafts, pages, posts

draft-concluder/draft-concluder.php Passed 13 tests

The main PHP file in "Draft Concluder" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
46 characters long description:
📝 Email users that have outstanding drafts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin338 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2113170338

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin