84% titul

Code Review | autometa's TITUL

WordPress plugin autometa's TITUL scored 84% from 54 tests.

About plugin

  • Plugin page: titul
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-4.9.2
  • WordPress version: 6.3.1
  • First release: Sep 22, 2016
  • Latest release: Jan 18, 2018
  • Number of updates: 20
  • Update frequency: every 24.2 days
  • Top authors: JorgeAmVF (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 517 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by autometa's TITUL
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0045.98 ▼3.52
Dashboard /wp-admin3.31 ▲0.0057.31 ▲1.51
Posts /wp-admin/edit.php3.36 ▲0.0055.10 ▼0.07
Add New Post /wp-admin/post-new.php5.89 ▲0.00132.86 ▲42.41
Media Library /wp-admin/upload.php3.23 ▲0.0040.09 ▼6.01

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

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

Browser metrics Passed 4 tests

autometa's TITUL: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼2514.80 ▲0.552.29 ▼0.2447.88 ▼7.36
Dashboard /wp-admin2,209 ▼04.86 ▼0.21116.47 ▼24.6847.69 ▼13.46
Posts /wp-admin/edit.php2,092 ▼02.00 ▼0.0149.07 ▲0.2142.72 ▲1.05
Add New Post /wp-admin/post-new.php1,523 ▲423.00 ▼0.18772.10 ▼78.6380.95 ▲1.62
Media Library /wp-admin/upload.php1,385 ▼04.19 ▼0.06133.16 ▼1.0556.15 ▲0.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/titul/titul.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

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
5 plugin tags: title, link, shortcode, automation, metadata

titul/titul.php Passed 13 tests

The main PHP script in "autometa's TITUL" version 2.2 is automatically included on every request by WordPress
118 characters long description:
It reproduces publication titles and links in pages, posts, portfolios or products simply via: [titul] and [titulink].

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 plugin12 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP162312

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin