74% limit-characters-in-title

Code Review | Limit Characters in Title

WordPress plugin Limit Characters in Title scored74%from 54 tests.

About plugin

  • Plugin page: limit-characters-...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 1, 2015
  • Latest release: Mar 6, 2015
  • Number of updates: 13
  • Update frequency: every 0.4 days
  • Top authors: isaiaswebnet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,360 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.21MB] [CPU: ▼38.66ms] Passed 4 tests

Analyzing server-side resources used by Limit Characters in Title
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.76 ▼0.7015.74 ▼20.34
Dashboard /wp-admin2.80 ▼0.5017.67 ▼30.46
Posts /wp-admin/edit.php2.80 ▼0.5616.48 ▼28.10
Add New Post /wp-admin/post-new.php2.80 ▼3.0917.42 ▼75.75
Media Library /wp-admin/upload.php2.80 ▼0.4315.36 ▼16.29

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Limit Characters in Title
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,937 ▲20214.87 ▲0.291.66 ▲0.1843.59 ▲2.66
Dashboard /wp-admin2,343 ▲1526.39 ▲1.43123.34 ▲18.7836.90 ▼5.35
Posts /wp-admin/edit.php2,249 ▲1603.31 ▲1.3147.83 ▲10.9430.27 ▼1.52
Add New Post /wp-admin/post-new.php6,309 ▲4,77621.98 ▼1.07865.57 ▲195.0841.70 ▼21.81
Media Library /wp-admin/upload.php1,379 ▼94.10 ▼0.1276.08 ▼31.4339.72 ▼4.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/limit-characters-in-title/metabox/init.php+746
    count(): Parameter must be an array or an object that implements Countable
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× 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/limit-characters-in-title/limit-characters-in-title.php:59
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/limit-characters-in-title/metabox/init.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: page, title, limit, post, editor

limit-characters-in-title/limit-characters-in-title.php 92% from 13 tests

The primary PHP file in "Limit Characters in Title" version 0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected4,394 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript43063742,169
PHP75109971,685
CSS26121540

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity58.00
▷ Minimum class complexity7.00
▷ Maximum class complexity136.00
Average method complexity3.89
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods138
▷ Static methods3525.36%
▷ Public methods13698.55%
▷ Protected methods21.45%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
20 PNG files occupy 0.75MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png314.49KB6.81KB▼ 97.83%
icon-128x128.png48.21KB0.70KB▼ 98.56%
metabox/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
metabox/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
icon-256x256.png50.24KB1.41KB▼ 97.19%