84% pressburst-news-feed

Code Review | Pressburst News Feed

WordPress plugin Pressburst News Feed scored 84% from 54 tests.

About plugin

  • Plugin page: pressburst-news-feed
  • Plugin version: 1.0
  • PHP compatiblity: 7.4.21+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2
  • WordPress version: 6.3.1
  • First release: Jun 8, 2023
  • Latest release: Jun 8, 2023
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: pixeldesignsplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 56 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.42ms] Passed 4 tests

Server-side resources used by Pressburst News Feed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0023.02 ▼15.91
Dashboard /wp-admin3.40 ▲0.1046.50 ▼3.77
Posts /wp-admin/edit.php3.51 ▲0.1647.25 ▲1.15
Add New Post /wp-admin/post-new.php5.98 ▲0.0992.94 ▲1.18
Media Library /wp-admin/upload.php3.32 ▲0.0933.26 ▼3.14
Pressburst /wp-admin/options-general.php?page=pressburst-news-feed3.2933.22

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Pressburst News Feed: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7114.84 ▲1.741.83 ▼0.0540.48 ▼5.01
Dashboard /wp-admin2,213 ▲254.85 ▼0.0399.23 ▼1.9139.42 ▼4.64
Posts /wp-admin/edit.php2,090 ▲11.98 ▼0.0638.95 ▼0.0032.98 ▼1.50
Add New Post /wp-admin/post-new.php1,537 ▲1722.95 ▼0.12590.33 ▼70.2854.16 ▼11.11
Media Library /wp-admin/upload.php1,389 ▲14.20 ▼0.05103.59 ▼1.3542.72 ▼2.71
Pressburst /wp-admin/options-general.php?page=pressburst-news-feed8152.0525.9826.22

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 5× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/pressburst-news-feed/pressburst-news-feed.php
    • > /wp-content/plugins/pressburst-news-feed/assets/functions/styles-and-scripts-frontend.php
    • > /wp-content/plugins/pressburst-news-feed/assets/functions/styles-and-scripts-backend.php
    • > /wp-content/plugins/pressburst-news-feed/assets/functions/main.php
    • > /wp-content/plugins/pressburst-news-feed/assets/functions/page.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: pressburst, news feed

pressburst-news-feed/pressburst-news-feed.php 92% from 13 tests

The principal PHP file in "Pressburst News Feed" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected519 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP5217129406
CSS3320105
JavaScript21108

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin