94% tidings

Code Review | Tidings

WordPress plugin Tidings scored 94% from 54 tests.

About plugin

  • Plugin page: tidings
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2
  • WordPress version: 5.8.1
  • First release: Jun 14, 2017
  • Latest release: Jun 3, 2019
  • Number of updates: 10
  • Update frequency: every 71.9 days
  • Top authors: tidingsco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 569 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼143.38ms] Passed 4 tests

Server-side resources used by Tidings
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1330.39 ▲9.09
Dashboard /wp-admin3.09 ▲0.0443.69 ▼5.02
Posts /wp-admin/edit.php3.14 ▲0.0443.93 ▼3.70
Add New Post /wp-admin/post-new.php5.46 ▲0.0390.79 ▼563.05
Media Library /wp-admin/upload.php3.04 ▲0.0335.27 ▼1.73
Tidings /wp-admin/options-general.php?page=tidings-settings3.0128.84

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Tidings
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,686 ▲9015.90 ▲0.207.83 ▼1.2050.74 ▲2.60
Dashboard /wp-admin2,978 ▲485.94 ▲0.01134.70 ▼9.37110.71 ▼1.06
Posts /wp-admin/edit.php2,744 ▲52.70 ▲0.0167.17 ▲2.9192.92 ▼1.49
Add New Post /wp-admin/post-new.php1,618 ▼2,03221.39 ▲6.45269.21 ▼159.78102.23 ▼4.98
Media Library /wp-admin/upload.php1,812 ▲25.03 ▼0.11148.55 ▼7.19121.86 ▼6.54
Tidings /wp-admin/options-general.php?page=tidings-settings1,3492.0961.80102.89

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/tidings/tidings.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === tidings === )
Please take inspiration from this readme.txt

tidings/tidings.php Passed 13 tests

The primary PHP file in "Tidings" version 1.0.3 is used by WordPress to initiate all plugin functionality
81 characters long description:
Connect with your tidings.com account and create posts based on your newsletters.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin890 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP6173188848
CSS14226
Markdown19016

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity15.00
▷ Minimum class complexity2.00
▷ Maximum class complexity29.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods49
▷ Static methods1326.53%
▷ Public methods49100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants3
▷ Global constants3100.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
No PNG files were detected