83% irm-newsroom

Code Review | IRM Newsroom

WordPress plugin IRM Newsroom scored83%from 54 tests.

About plugin

  • Plugin page: irm-newsroom
  • Plugin version: 1.2.15
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Jul 4, 2016
  • Latest release: Oct 9, 2023
  • Number of updates: 52
  • Update frequency: every 51.5 days
  • Top authors: irmau (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /2,720 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼5.52ms] 75% from 4 tests

Server-side resources used by IRM Newsroom
Please take the time to fix the following items
  • CPU: Try to keep total CPU usage under 500.00ms (currently 2,838.90ms on /wp-admin/options-general.php?page=irm-newsroom)
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1241.81 ▲4.28
Dashboard /wp-admin3.42 ▲0.0746.74 ▼9.26
Posts /wp-admin/edit.php3.54 ▲0.1844.10 ▼1.27
Add New Post /wp-admin/post-new.php6.02 ▲0.1385.13 ▼14.22
Media Library /wp-admin/upload.php3.35 ▲0.1137.53 ▲2.68
IRM Newsroom /wp-admin/options-general.php?page=irm-newsroom3.322,838.90

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for IRM Newsroom
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲11913.48 ▼0.928.55 ▲6.6943.89 ▲4.15
Dashboard /wp-admin2,206 ▲265.63 ▼0.0495.78 ▲8.8842.43 ▲2.00
Posts /wp-admin/edit.php2,108 ▲82.04 ▲0.0836.55 ▲0.2032.00 ▼3.90
Add New Post /wp-admin/post-new.php1,533 ▲723.13 ▼0.04665.54 ▼6.3663.78 ▲3.92
Media Library /wp-admin/upload.php1,402 ▲24.15 ▼0.0394.59 ▼6.2243.88 ▲1.10
IRM Newsroom /wp-admin/options-general.php?page=irm-newsroom9471.9922.1844.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% 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 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 fix the following
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/irm-newsroom/public/partials/irm-newsroom-public-display.php
    • > /wp-content/plugins/irm-newsroom/featured-image.php
    • > /wp-content/plugins/irm-newsroom/cats.php
    • > /wp-content/plugins/irm-newsroom/admin/partials/irm-newsroom-admin-display.php

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 issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === irm-newsroom === )
The official readme.txt might help

irm-newsroom/irm-newsroom.php 92% from 13 tests

The main file in "IRM Newsroom" v. 1.2.15 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 267 characters long)

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 plugin849 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP14249587721
PO File15658122
JavaScript24546
CSS2080

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity1.29
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.08
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods1979.17%
▷ Protected methods00.00%
▷ Private methods520.83%
Functions21
▷ Named functions21100.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 files were detected