94% internal-page-title

Code Review | Internal Page Title

WordPress plugin Internal Page Title scored 94% from 54 tests.

About plugin

  • Plugin page: internal-page-title
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9.8
  • WordPress version: 5.8.1
  • First release: Oct 9, 2018
  • Latest release: Oct 9, 2018
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: NerdCow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 323 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.33MB] [CPU: ▼151.43ms] Passed 4 tests

This is a short check of server-side resources used by Internal Page Title
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1348.79 ▲28.39
Dashboard /wp-admin3.08 ▲0.0249.98 ▲2.77
Posts /wp-admin/edit.php3.13 ▲0.0250.44 ▲2.20
Add New Post /wp-admin/post-new.php4.06 ▼1.3749.91 ▼610.10
Media Library /wp-admin/upload.php3.02 ▲0.0236.88 ▼0.58

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Internal Page Title
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,706 ▲11015.83 ▲0.2410.45 ▲0.3252.82 ▼3.99
Dashboard /wp-admin2,973 ▲395.91 ▼0.03151.20 ▼4.33112.40 ▼14.92
Posts /wp-admin/edit.php2,742 ▲32.71 ▲0.0177.28 ▲4.7983.38 ▼4.93
Add New Post /wp-admin/post-new.php1,594 ▼8918.76 ▲0.01413.77 ▲22.54111.90 ▼7.37
Media Library /wp-admin/upload.php1,810 ▲35.01 ▼0.02150.61 ▼10.93129.43 ▲2.08

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/internal-page-title/internal-page-title.php:121

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === internal-page-title === )
The official readme.txt is a good inspiration

internal-page-title/internal-page-title.php Passed 13 tests

The main PHP script in "Internal Page Title" version 1.0 is automatically included on every request by WordPress
69 characters long description:
Allows to add an additional page title that is only for internal use.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected92 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1594692

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.82
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%
Functions9
▷ Named functions9100.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
No PNG images were found in this plugin