84% posts-news-ticker

Code Review | Posts News Ticker

WordPress plugin Posts News Ticker scored84%from 54 tests.

About plugin

  • Plugin page: posts-news-ticker
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Jan 22, 2017
  • Latest release: Jan 22, 2017
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: hamzarauf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,360 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 gracefully, with no errors

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

Server-side resources used by Posts News Ticker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.82 ▲0.99
Dashboard /wp-admin3.32 ▲0.0153.88 ▲4.40
Posts /wp-admin/edit.php3.37 ▲0.0148.68 ▼4.03
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.46 ▲6.53
Media Library /wp-admin/upload.php3.24 ▲0.0136.56 ▲1.54

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Posts News Ticker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.75 ▲0.372.09 ▲0.3755.30 ▲9.63
Dashboard /wp-admin2,192 ▲125.58 ▼0.0184.26 ▼9.4836.53 ▼7.98
Posts /wp-admin/edit.php2,103 ▼02.01 ▲0.0134.72 ▼6.5735.74 ▼3.70
Add New Post /wp-admin/post-new.php1,535 ▲918.36 ▼4.91643.61 ▲39.5368.47 ▲20.03
Media Library /wp-admin/upload.php1,403 ▲64.18 ▼0.0599.58 ▼2.5144.35 ▲0.36

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

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

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/posts-news-ticker/postsnewsticker.php:126

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: news, rotate, posts, newsticker, blog...

posts-news-ticker/postsnewsticker.php 92% from 13 tests

The principal PHP file in "Posts News Ticker" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("posts-news-ticker.php" instead of "postsnewsticker.php")

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
There were no executable files found in this plugin81 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1361181

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin