90% pojo-news-ticker

Code Review | Pojo News Ticker

WordPress plugin Pojo News Ticker scored90%from 54 tests.

About plugin

  • Plugin page: pojo-news-ticker
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Feb 26, 2015
  • Latest release: Jul 23, 2023
  • Number of updates: 22
  • Update frequency: every 139.5 days
  • Top authors: KingYes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

7,000+ active /45,928 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.63ms] Passed 4 tests

Analyzing server-side resources used by Pojo News Ticker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.02 ▼7.41
Dashboard /wp-admin3.33 ▼0.0247.21 ▼9.25
Posts /wp-admin/edit.php3.38 ▲0.0245.62 ▼2.74
Add New Post /wp-admin/post-new.php5.91 ▲0.02114.33 ▲13.43
Media Library /wp-admin/upload.php3.25 ▲0.0233.60 ▼3.11

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pojo News Ticker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.77 ▼0.781.57 ▼0.4442.48 ▼0.73
Dashboard /wp-admin2,215 ▲274.83 ▼1.07110.05 ▼2.9142.94 ▼2.15
Posts /wp-admin/edit.php2,094 ▲52.01 ▼0.0240.76 ▼1.8735.84 ▼1.47
Add New Post /wp-admin/post-new.php1,520 ▲117.77 ▼5.21612.35 ▼17.1949.20 ▼4.86
Media Library /wp-admin/upload.php1,394 ▲94.32 ▲0.1298.09 ▼0.7940.97 ▼2.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (News Ticker Widget), #2 (Style Options)
The official readme.txt might help

pojo-news-ticker/pojo-news-ticker.php Passed 13 tests

The principal PHP file in "Pojo News Ticker" v. 1.0.3 is loaded by WordPress automatically on each request
110 characters long description:
This plugin allows you to add a News Ticker widget to your WordPress site, of which works with Pojo Framework.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin631 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP25937354
PO File15969139
JavaScript3269138

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity10.00
▷ Minimum class complexity5.00
▷ Maximum class complexity15.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods14
▷ Static methods17.14%
▷ Public methods1285.71%
▷ Protected methods17.14%
▷ Private methods17.14%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
2 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png28.04KB8.30KB▼ 70.39%
screenshot-1.png49.66KB16.07KB▼ 67.65%