78% information-reel

Code Review | Information Reel

WordPress plugin Information Reel scored78%from 54 tests.

About plugin

  • Plugin page: information-reel
  • Plugin version: 10.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.4
  • WordPress version: 6.3.1
  • First release: Apr 18, 2011
  • Latest release: Oct 28, 2023
  • Number of updates: 65
  • Update frequency: every 70.4 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active /39,337 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼6.75ms] Passed 4 tests

Analyzing server-side resources used by Information Reel
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1043.97 ▲4.54
Dashboard /wp-admin3.41 ▲0.0746.72 ▼14.35
Posts /wp-admin/edit.php3.52 ▲0.1742.35 ▲3.25
Add New Post /wp-admin/post-new.php5.99 ▲0.1181.09 ▼16.45
Media Library /wp-admin/upload.php3.33 ▲0.1135.87 ▲0.55
Information Reel /wp-admin/options-general.php?page=information-reel3.3431.35

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 19 new files
Database: 1 new table, 14 new options
New tables
wp_information_reel
New WordPress options
IR_TextLength
db_upgraded
IR_random
widget_theysaidso_widget
widget_recent-posts
widget_informationreel
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
IR_Title
...

Browser metrics Passed 4 tests

Checking browser requirements for Information Reel
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲3614.26 ▼0.101.90 ▼0.0745.21 ▲1.47
Dashboard /wp-admin2,199 ▲225.68 ▼0.0197.43 ▲4.3742.38 ▲5.48
Posts /wp-admin/edit.php2,104 ▲12.00 ▼0.0332.42 ▼8.1332.68 ▼4.20
Add New Post /wp-admin/post-new.php1,531 ▲523.02 ▼0.09648.99 ▲14.3449.53 ▼5.84
Media Library /wp-admin/upload.php1,407 ▲134.19 ▼0.0296.67 ▼6.9243.08 ▼0.46
Information Reel /wp-admin/options-general.php?page=information-reel1,0022.2722.5123.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_informationreel
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/information-reel/pages/content-management-edit.php
    • > /wp-content/plugins/information-reel/pages/content-management-add.php
    • > /wp-content/plugins/information-reel/pages/content-management-show.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/information-reel/information-reel.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/information-reel/information-reel.php:380

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 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: scroll, announcement, scroller, text scroll, reel

information-reel/information-reel.php 92% from 13 tests

The principal PHP file in "Information Reel" v. 10.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 198 characters long)

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 plugin1,639 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP584501,091
PO File3187287431
JavaScript21025117

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin