78% simple-page-title

Code Review | Simple Page Title

WordPress plugin Simple Page Title scored78%from 54 tests.

About plugin

  • Plugin page: simple-page-title
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.7
  • WordPress version: 6.3.1
  • First release: Apr 18, 2017
  • Latest release: Apr 9, 2017
  • Number of updates: 23
  • Update frequency: every 0.1 days
  • Top authors: saurabhbtech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /442 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.62ms] Passed 4 tests

This is a short check of server-side resources used by Simple Page Title
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.65 ▼4.78
Dashboard /wp-admin3.36 ▲0.0248.10 ▼17.05
Posts /wp-admin/edit.php3.41 ▲0.0652.18 ▼0.41
Add New Post /wp-admin/post-new.php5.96 ▲0.0898.81 ▼4.22
Media Library /wp-admin/upload.php3.28 ▲0.0641.07 ▲5.48
Simple Page Title /wp-admin/options-general.php?page=spt3.2536.89

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 16 new options
New WordPress options
spt_ele_ID
spt_blog
spt_home
theysaidso_admin_options
can_compress_scripts
spt_tag
spt_404
widget_recent-comments
widget_recent-posts
spt_category
...

Browser metrics Passed 4 tests

A check of browser resources used by Simple Page Title
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲3713.25 ▼1.044.41 ▲2.2738.54 ▼1.55
Dashboard /wp-admin2,229 ▲266.06 ▲1.14103.63 ▼4.8741.17 ▼1.52
Posts /wp-admin/edit.php2,108 ▲82.02 ▲0.0238.73 ▼1.3635.19 ▲0.34
Add New Post /wp-admin/post-new.php1,533 ▲723.13 ▲5.54674.90 ▼20.2373.43 ▲17.35
Media Library /wp-admin/upload.php1,402 ▼14.24 ▲0.03106.79 ▲1.3243.99 ▼1.04
Simple Page Title /wp-admin/options-general.php?page=spt1,2302.0729.0929.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/simple-page-title/simple-page-title.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-page-title/include/name-titles.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-page-title/include/page-titles.php:68

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
2 plugin tags: page title, change page titles

simple-page-title/simple-page-title.php 92% from 13 tests

The primary PHP file in "Simple Page Title" version 2.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 166 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin469 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP52430442
CSS101017
JavaScript121010

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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