68% press-release-template

Code Review | Press Release Template

WordPress plugin Press Release Template scored68%from 54 tests.

About plugin

  • Plugin page: press-release-tem...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1-6.2.2
  • WordPress version: 6.3.1
  • First release: May 31, 2019
  • Latest release: Jun 9, 2023
  • Number of updates: 46
  • Update frequency: every 32.0 days
  • Top authors: lightimagemedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /933 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.86MB] [CPU: ▼35.83ms] Passed 4 tests

A check of server-side resources used by Press Release Template
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1044.76 ▼3.81
Dashboard /wp-admin3.08 ▼0.2224.90 ▼32.94
Posts /wp-admin/edit.php3.08 ▼0.2829.02 ▼26.80
Add New Post /wp-admin/post-new.php3.08 ▼2.8125.98 ▼70.78
Media Library /wp-admin/upload.php3.08 ▼0.1526.62 ▼12.80

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Press Release Template
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,895 ▲13413.51 ▼0.697.63 ▲5.4942.35 ▼1.58
Dashboard /wp-admin2,221 ▲445.65 ▲0.0894.46 ▼3.9140.79 ▼0.47
Posts /wp-admin/edit.php2,123 ▲231.99 ▼0.0141.67 ▲4.2937.71 ▼1.65
Add New Post /wp-admin/post-new.php1,546 ▲2023.71 ▲0.65726.43 ▲3.7564.15 ▼7.42
Media Library /wp-admin/upload.php1,423 ▲234.13 ▼0.0298.95 ▼9.6542.58 ▼4.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/press-release-template/inc/admin/class-admin.php+117
    Undefined variable: ajax_form_page_hook
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/press-release-template/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-template/inc/admin/views/partials-html-form-view.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Main screen) image not found
You can look at the official readme.txt

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

This is the main PHP file of "Press Release Template" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
127 characters long description:
A collection of free press release templates and examples. Press Release samples and free template for your next press release.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin398 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP132,560521373
JavaScript2123625
CSS22100

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.24
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods34
▷ Static methods38.82%
▷ Public methods2985.29%
▷ Protected methods00.00%
▷ Private methods514.71%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants7
▷ Global constants7100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/admin/assets/images/pressreleasetemplate.png20.10KB5.80KB▼ 71.13%