84% supaz-text-headlines

Code Review | Supaz Text Headlines - A simple text headlines plugin

WordPress plugin Supaz Text Headlines - A simple text headlines plugin scored 84% from 54 tests.

About plugin

  • Plugin page: supaz-text-headlines
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.8
  • WordPress version: 6.3.1
  • First release: Jun 22, 2017
  • Latest release: Mar 28, 2018
  • Number of updates: 5
  • Update frequency: every 55.8 days
  • Top authors: supazthemes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 845 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.10ms] Passed 4 tests

An overview of server-side resources used by Supaz Text Headlines - A simple text headlines plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.23 ▼6.16
Dashboard /wp-admin3.32 ▲0.0249.06 ▲0.80
Posts /wp-admin/edit.php3.37 ▲0.0245.45 ▼8.26
Add New Post /wp-admin/post-new.php5.92 ▲0.0494.30 ▼0.13
Media Library /wp-admin/upload.php3.24 ▲0.0235.94 ▼1.86

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 8 new options
New WordPress options
mh_custom_settings
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
mh_settings

Browser metrics Passed 4 tests

A check of browser resources used by Supaz Text Headlines - A simple text headlines plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,953 ▲21813.82 ▼0.618.68 ▲6.7168.31 ▲17.43
Dashboard /wp-admin2,241 ▲535.15 ▼0.73114.83 ▼1.1442.75 ▼4.12
Posts /wp-admin/edit.php2,111 ▲192.35 ▲0.3338.72 ▲1.8136.66 ▲3.12
Add New Post /wp-admin/post-new.php1,710 ▲17722.98 ▼0.19648.65 ▼30.0731.73 ▼31.61
Media Library /wp-admin/upload.php1,430 ▲394.47 ▲0.2293.10 ▼8.8742.41 ▼1.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • mh_settings
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • mh_custom_settings
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/supaz-text-headlines/inc/backend/settings.php
    • > /wp-content/plugins/supaz-text-headlines/supaz-text-headlines.php
    • > /wp-content/plugins/supaz-text-headlines/inc/frontend/shortcode.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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: magazine plugin, header plugin, text display plugin, notice plugin, headline plugin...

supaz-text-headlines/supaz-text-headlines.php Passed 13 tests

This is the main PHP file of "Supaz Text Headlines - A simple text headlines plugin" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
33 characters long description:
Simple mega text headlines plugin

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
Everything looks great! No dangerous files found in this plugin1,380 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP49426776
CSS31010294
JavaScript35957290
Markdown19020

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
image/mh-demo.PNG15.36KB6.66KB▼ 56.62%