89% sewn-in-post-delete

Code Review | Sewn In Post Delete

WordPress plugin Sewn In Post Delete scored89%from 54 tests.

About plugin

  • Plugin page: sewn-in-post-delete
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 13, 2015
  • Latest release: Jun 13, 2015
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: jcow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /944 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.96ms] Passed 4 tests

A check of server-side resources used by Sewn In Post Delete
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.86 ▼8.82
Dashboard /wp-admin3.37 ▲0.0347.47 ▼15.02
Posts /wp-admin/edit.php3.42 ▲0.0750.51 ▲3.18
Add New Post /wp-admin/post-new.php5.95 ▲0.07105.80 ▲5.49
Media Library /wp-admin/upload.php3.29 ▲0.0737.94 ▲0.82

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Sewn In Post Delete
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8413.23 ▼1.352.04 ▲0.2441.87 ▲0.32
Dashboard /wp-admin2,209 ▲215.88 ▲0.95103.00 ▼3.8439.31 ▲0.79
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0239.88 ▲0.7737.46 ▼2.06
Add New Post /wp-admin/post-new.php1,534 ▲1523.18 ▼0.00685.29 ▼8.0855.96 ▲1.26
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.05101.07 ▼1.2945.75 ▲2.89

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

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

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

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 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === sewn-in-post-delete === )
You can take inspiration from this readme.txt

sewn-in-post-delete/sewn-in-post-delete.php 85% from 13 tests

This is the main PHP file of "Sewn In Post Delete" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages")
  • 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 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected258 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP142151239
JavaScript14419

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin