10% news-tick-o-matic

Code Review | News Tick-O-Matic

WordPress plugin News Tick-O-Matic scored10%from 54 tests.

About plugin

  • Plugin page: news-tick-o-matic
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.3.2
  • WordPress version: 6.3.1
  • First release: Mar 13, 2012
  • Latest release: May 3, 2012
  • Number of updates: 6
  • Update frequency: every 78.3 days
  • Top authors: baden03 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /5,882 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/news-tick-o-matic/news-tick-o-matic.php+57
    Methods with the same name as their class will not be constructors in a future version of PHP; NewsTickOMatic has a deprecated constructor

Server metrics [RAM: ▼1.85MB] [CPU: ▼55.44ms] Passed 4 tests

An overview of server-side resources used by News Tick-O-Matic
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.325.44 ▼40.37
Dashboard /wp-admin2.16 ▼1.155.75 ▼44.40
Posts /wp-admin/edit.php2.16 ▼1.206.08 ▼46.81
Add New Post /wp-admin/post-new.php2.16 ▼3.735.07 ▼90.18
Media Library /wp-admin/upload.php2.16 ▼1.076.02 ▼30.82

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_newstickomatic
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for News Tick-O-Matic
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11513.44 ▼1.188.92 ▲6.5043.29 ▼6.64
Dashboard /wp-admin2,198 ▲215.69 ▲0.1087.67 ▲0.3740.91 ▼2.52
Posts /wp-admin/edit.php2,097 ▼62.01 ▲0.0033.93 ▼12.1738.60 ▼4.37
Add New Post /wp-admin/post-new.php1,526 ▼023.56 ▼0.01683.70 ▲4.5452.68 ▼13.52
Media Library /wp-admin/upload.php1,397 ▼04.16 ▼0.0198.23 ▼7.2043.89 ▼0.98

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/news-tick-o-matic/news-tick-o-matic.php+57
    Methods with the same name as their class will not be constructors in a future version of PHP; NewsTickOMatic has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_newstickomatic
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/news-tick-o-matic/news-tick-o-matic.php:43

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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:
  • Screenshots: Screenshot #1 (News Tick-O-Matic, frozen in news ticking action.) image not found
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can take inspiration from this readme.txt

news-tick-o-matic/news-tick-o-matic.php Passed 13 tests

The main PHP file in "News Tick-O-Matic" ver. 0.2 adds more information about the plugin and also serves as the entry point for this plugin
80 characters long description:
Animated news ticker—display the newest news a smoothly scrolling sidebar.

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
Good job! No executable or dangerous file extensions detected223 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13232179
CSS11243
JavaScript1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity6.75
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
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.png40.11KB11.55KB▼ 71.20%
screenshot-1.png37.73KB10.00KB▼ 73.49%