90% press-release-writer

Code Review | Press Release Writer

WordPress plugin Press Release Writer scored90%from 54 tests.

About plugin

  • Plugin page: press-release-writer
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 19, 2019
  • Latest release: Jun 9, 2023
  • Number of updates: 74
  • Update frequency: every 20.8 days
  • Top authors: lightimagemedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,176 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Press Release Writer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.24 ▼7.37
Dashboard /wp-admin3.36 ▲0.0649.64 ▼3.30
Posts /wp-admin/edit.php3.41 ▲0.0651.10 ▲1.71
Add New Post /wp-admin/post-new.php5.94 ▲0.0690.86 ▼12.35
Media Library /wp-admin/upload.php3.28 ▲0.0641.41 ▲8.79
Add New /wp-admin/post-new.php?post_type=pressrelease3.5058.93
All Press Releases /wp-admin/edit.php?post_type=pressrelease3.3339.72

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Press Release Writer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,939 ▲19314.12 ▼0.666.00 ▲4.3343.34 ▲0.67
Dashboard /wp-admin2,233 ▲454.86 ▼0.07106.16 ▼2.8642.60 ▼2.36
Posts /wp-admin/edit.php2,116 ▲242.00 ▲0.0237.15 ▼6.5936.32 ▲0.49
Add New Post /wp-admin/post-new.php1,556 ▲3523.47 ▲0.11685.76 ▲64.0260.33 ▲15.27
Media Library /wp-admin/upload.php1,415 ▲274.20 ▲0.03110.25 ▲0.8949.73 ▲3.81
Add New /wp-admin/post-new.php?post_type=pressrelease2,7707.84173.7880.87
All Press Releases /wp-admin/edit.php?post_type=pressrelease1,1282.0231.1329.12

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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
These attributes need your attention: You can take inspiration from this readme.txt

press-release-writer/press-release-writer.php Passed 13 tests

The main file in "Press Release Writer" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
64 characters long description:
A press release writing tool for your WordPress website or blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin229 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP269172229

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin