84% tides

Code Review | Tides

WordPress plugin Tides scored84%from 54 tests.

About plugin

  • Plugin page: tides
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Sep 6, 2015
  • Latest release: Sep 6, 2015
  • Number of updates: 2
  • Update frequency: every 5.0 days
  • Top authors: theartifice (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,022 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.19ms] Passed 4 tests

Server-side resources used by Tides
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.28 ▼2.29
Dashboard /wp-admin3.31 ▲0.0145.00 ▼3.85
Posts /wp-admin/edit.php3.37 ▲0.0045.85 ▼15.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0092.83 ▼6.65
Media Library /wp-admin/upload.php3.24 ▲0.0034.25 ▼1.00

Server storage [IO: ▲0.00MB] [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: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tides
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.011.71 ▲0.2238.19 ▼1.99
Dashboard /wp-admin2,192 ▲125.50 ▼0.1581.80 ▼5.8736.62 ▼2.96
Posts /wp-admin/edit.php2,103 ▲31.96 ▼0.0435.52 ▼0.6533.57 ▼0.91
Add New Post /wp-admin/post-new.php1,535 ▲718.11 ▼4.90580.93 ▼20.6865.70 ▲12.11
Media Library /wp-admin/upload.php1,400 ▲64.27 ▲0.0495.74 ▼4.0343.08 ▼2.51

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 fix the following items
  • 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/tides/tides.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: marketing, literature, film, comics, anime...

tides/tides.php Passed 13 tests

This is the main PHP file of "Tides" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
53 characters long description:
Adds a Tides submit link whenever a post is published

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin18 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101018

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin