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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.76 ▼0.70 | 15.74 ▼20.34 |
Dashboard /wp-admin | 2.80 ▼0.50 | 17.67 ▼30.46 |
Posts /wp-admin/edit.php | 2.80 ▼0.56 | 16.48 ▼28.10 |
Add New Post /wp-admin/post-new.php | 2.80 ▼3.09 | 17.42 ▼75.75 |
Media Library /wp-admin/upload.php | 2.80 ▼0.43 | 15.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲202 | 14.87 ▲0.29 | 1.66 ▲0.18 | 43.59 ▲2.66 |
Dashboard /wp-admin | 2,343 ▲152 | 6.39 ▲1.43 | 123.34 ▲18.78 | 36.90 ▼5.35 |
Posts /wp-admin/edit.php | 2,249 ▲160 | 3.31 ▲1.31 | 47.83 ▲10.94 | 30.27 ▼1.52 |
Add New Post /wp-admin/post-new.php | 6,309 ▲4,776 | 21.98 ▼1.07 | 865.57 ▲195.08 | 41.70 ▼21.81 |
Media Library /wp-admin/upload.php | 1,379 ▼9 | 4.10 ▼0.12 | 76.08 ▼31.43 | 39.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 306 | 374 | 2,169 |
PHP | 7 | 510 | 997 | 1,685 |
CSS | 2 | 61 | 21 | 540 |
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 code | 0.54 |
Average class complexity | 58.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 138 | |
▷ Static methods | 35 | 25.36% |
▷ Public methods | 136 | 98.55% |
▷ Protected methods | 2 | 1.45% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 314.49KB | 6.81KB | ▼ 97.83% |
icon-128x128.png | 48.21KB | 0.70KB | ▼ 98.56% |
metabox/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
metabox/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
icon-256x256.png | 50.24KB | 1.41KB | ▼ 97.19% |