84% real-time-title-checker

Code Review | Real-time TITLE Checker

WordPress plugin Real-time TITLE Checker scored84%from 54 tests.

About plugin

  • Plugin page: real-time-title-c...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 26, 2018
  • Latest release: Oct 1, 2018
  • Number of updates: 5
  • Update frequency: every 7.6 days
  • Top authors: reik1200 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /644 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.02MB] [CPU: ▼11.06ms] Passed 4 tests

Server-side resources used by Real-time TITLE Checker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0242.54 ▼1.17
Dashboard /wp-admin3.37 ▼0.0149.78 ▼19.34
Posts /wp-admin/edit.php3.49 ▲0.0951.82 ▼0.48
Add New Post /wp-admin/post-new.php5.98 ▲0.0582.49 ▼23.23
Media Library /wp-admin/upload.php3.30 ▲0.0338.59 ▲0.73
TITLE Checker /wp-admin/options-general.php?page=rt-checker-wbc3.2731.44

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Real-time TITLE Checker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.23 ▲0.121.93 ▲0.1443.62 ▼1.95
Dashboard /wp-admin2,196 ▲165.55 ▼0.1086.46 ▼6.1840.74 ▼3.75
Posts /wp-admin/edit.php2,101 ▲221.95 ▼0.0736.43 ▼0.5135.72 ▲2.65
Add New Post /wp-admin/post-new.php1,541 ▲618.41 ▼0.07655.78 ▼33.5373.64 ▼5.74
Media Library /wp-admin/upload.php1,398 ▲14.21 ▲0.0696.92 ▼11.6641.76 ▼8.58
TITLE Checker /wp-admin/options-general.php?page=rt-checker-wbc8472.0125.9025.46

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-time-title-checker/rt-checker.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/real-time-title-checker/views/options.php:11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid url: ""
The official readme.txt might help

real-time-title-checker/rt-checker.php 92% from 13 tests

The main PHP script in "Real-time TITLE Checker" version 1.0.2 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("real-time-title-checker.php" instead of "rt-checker.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 plugin251 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP21419134
CSS13061
JavaScript17556

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.36
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

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