84% gntt-post-title-ticker

Code Review | GNTT Post Title Ticker

WordPress plugin GNTT Post Title Ticker scored84%from 54 tests.

About plugin

  • Plugin page: gntt-post-title-t...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 15, 2016
  • Latest release: Mar 26, 2016
  • Number of updates: 35
  • Update frequency: every 0.3 days
  • Top authors: golzarrahman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /921 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: ▼2.19ms] Passed 4 tests

This is a short check of server-side resources used by GNTT Post Title Ticker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.50 ▼0.49
Dashboard /wp-admin3.32 ▲0.0248.79 ▼2.20
Posts /wp-admin/edit.php3.38 ▲0.0251.81 ▲2.72
Add New Post /wp-admin/post-new.php5.91 ▲0.0296.08 ▼8.77
Media Library /wp-admin/upload.php3.25 ▲0.0238.58 ▲6.41

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for GNTT Post Title Ticker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,963 ▲20213.47 ▼0.9712.11 ▲10.1647.61 ▲0.80
Dashboard /wp-admin2,197 ▲235.62 ▲0.0492.88 ▼11.7641.91 ▼6.21
Posts /wp-admin/edit.php2,102 ▲22.00 ▼0.0139.04 ▼1.8734.18 ▼0.77
Add New Post /wp-admin/post-new.php1,528 ▼823.11 ▲0.02597.41 ▼27.1262.95 ▲13.69
Media Library /wp-admin/upload.php1,402 ▲24.22 ▲0.0597.99 ▼5.0044.54 ▼0.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gntt-post-title-ticker/gntt-post-title-ticker.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

gntt-post-title-ticker/gntt-post-title-ticker.php Passed 13 tests

"GNTT Post Title Ticker" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
95 characters long description:
This plugin will make display of all post title on any page or post or widget in your web site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin163 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1715129
CSS14030
JavaScript1064

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot.png14.11KB5.63KB▼ 60.09%