79% press-release

Code Review | Press Release

WordPress plugin Press Release scored 79% from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 1,628 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: ▼1.61ms] Passed 4 tests

Server-side resources used by Press Release
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.34 ▼3.25
Dashboard /wp-admin3.36 ▲0.0649.45 ▲0.92
Posts /wp-admin/edit.php3.41 ▲0.0654.03 ▲1.46
Add New Post /wp-admin/post-new.php5.94 ▲0.0687.89 ▼4.79
Media Library /wp-admin/upload.php3.28 ▲0.0636.03 ▲0.69
All Press Releases /wp-admin/edit.php?post_type=pressrelease3.3335.89
Add New /wp-admin/post-new.php?post_type=pressrelease3.4951.85

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Press Release
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲17913.58 ▼1.007.16 ▲5.2839.37 ▼21.50
Dashboard /wp-admin2,230 ▲394.87 ▼0.01111.27 ▼10.9538.09 ▼2.93
Posts /wp-admin/edit.php2,119 ▲511.97 ▼0.0340.37 ▲5.4936.07 ▲2.93
Add New Post /wp-admin/post-new.php1,542 ▲522.93 ▼0.17643.22 ▼31.0062.78 ▲10.53
Media Library /wp-admin/upload.php1,412 ▲244.10 ▼0.06102.17 ▼1.8045.77 ▼4.69
All Press Releases /wp-admin/edit.php?post_type=pressrelease1,1341.9732.0536.52
Add New /wp-admin/post-new.php?post_type=pressrelease2,7747.84176.6375.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 detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/press-release/inc/frontend/views/html-prwirepro-press-release-writer-frontend-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/press-release/inc/admin/views/partials-html-form-view.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
3 plugin tags: press release, press, seo

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

"Press Release" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
68 characters long description:
A press release editor with an included free press release template.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin620 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP132,196611554
HTML15041
JavaScript2123625
CSS22100

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity2.56
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.30
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods47
▷ Static methods24.26%
▷ Public methods4289.36%
▷ Protected methods00.00%
▷ Private methods510.64%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/admin/assets/images/logo.png1.45KB1.04KB▼ 28.17%
inc/admin/assets/images/pressreleasetemplate.png6.05KB3.08KB▼ 49.21%