89% press-release-distribution

Code Review | Press Release Distribution

WordPress plugin Press Release Distribution scored89%from 54 tests.

About plugin

  • Plugin page: press-release-dis...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 30, 2018
  • Latest release: Jun 9, 2023
  • Number of updates: 275
  • Update frequency: every 5.9 days
  • Top authors: lightimagemedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /4,749 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Press Release Distribution
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.51 ▼7.60
Dashboard /wp-admin3.37 ▲0.0646.49 ▼2.99
Posts /wp-admin/edit.php3.42 ▲0.0649.43 ▼2.80
Add New Post /wp-admin/post-new.php5.95 ▲0.0685.76 ▼4.19
Media Library /wp-admin/upload.php3.29 ▲0.0634.60 ▲0.69
All Press Releases /wp-admin/edit.php?post_type=press_release3.3336.09
Add New /wp-admin/post-new.php?post_type=press_release3.5051.69

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

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

Browser metrics Passed 4 tests

Press Release Distribution: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲17913.62 ▼0.674.62 ▲2.7841.12 ▼8.53
Dashboard /wp-admin2,227 ▲425.79 ▲0.89101.48 ▼2.4640.44 ▼0.90
Posts /wp-admin/edit.php2,113 ▲212.05 ▲0.0539.19 ▼5.7234.60 ▼1.99
Add New Post /wp-admin/post-new.php1,442 ▼7719.89 ▼3.21604.82 ▼47.2260.36 ▲3.32
Media Library /wp-admin/upload.php1,418 ▲304.22 ▲0.0298.34 ▼1.5442.59 ▼0.07
All Press Releases /wp-admin/edit.php?post_type=press_release1,1281.9331.4030.11
Add New /wp-admin/post-new.php?post_type=press_release2,7707.75178.6475.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed: The official readme.txt is a good inspiration

press-release-distribution/press-release-distribution.php 92% from 13 tests

This is the main PHP file of "Press Release Distribution" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 222 characters long)

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
There were no executable files found in this plugin299 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP269171229
PO File1202070

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity4.50
▷ Minimum class complexity3.00
▷ Maximum class complexity6.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
PNG images were not found in this plugin