74% press-release-reviews

Code Review | Press Release Reviews

WordPress plugin Press Release Reviews scored74%from 54 tests.

About plugin

  • Plugin page: press-release-rev...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1-6.2
  • WordPress version: 6.3.1
  • First release: Jan 19, 2020
  • Latest release: Apr 7, 2023
  • Number of updates: 43
  • Update frequency: every 27.4 days
  • Top authors: lightimagemedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /579 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

This is a short check of server-side resources used by Press Release Reviews
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1045.39 ▼11.77
Dashboard /wp-admin3.08 ▼0.2222.75 ▼32.06
Posts /wp-admin/edit.php3.08 ▼0.2827.62 ▼21.77
Add New Post /wp-admin/post-new.php3.08 ▼2.8124.46 ▼67.75
Media Library /wp-admin/upload.php3.08 ▼0.1524.07 ▼15.22

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Press Release Reviews
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲16013.59 ▼0.698.13 ▲6.2947.03 ▲5.09
Dashboard /wp-admin2,226 ▲385.81 ▲0.92100.64 ▼6.8939.41 ▼3.83
Posts /wp-admin/edit.php2,112 ▲232.00 ▼0.0339.93 ▼0.6335.96 ▲0.47
Add New Post /wp-admin/post-new.php1,534 ▲1517.79 ▼5.50611.99 ▼71.9951.52 ▼4.06
Media Library /wp-admin/upload.php1,414 ▲264.17 ▼0.05103.44 ▼4.1944.52 ▼1.92

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
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/press-release-reviews/inc/admin/class-admin.php+117
    Undefined variable: ajax_form_page_hook
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
Please take a closer look at the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/press-release-reviews/inc/admin/views/partials-html-form-view.php
    • > /wp-content/plugins/press-release-reviews/inc/frontend/views/html-prwirepro-press-release-newsroom-frontend-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (Main screen)
You can take inspiration from this readme.txt

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

The primary PHP file in "Press Release Reviews" version 1.0.0 is used by WordPress to initiate all plugin functionality
129 characters long description:
Display press releases directly from Pressreleasereviews.com directly on your pages or sidebar of your WordPress website or blog.

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 plugin400 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP132,469515334
HTML15041
JavaScript2123625
CSS22100

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.13
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin