Benchmarks
Plugin footprint 83% 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: ▼0.62MB] [CPU: ▼21.07ms] Passed 4 tests
This is a short check of server-side resources used by CRS Post Title Shortener
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 43.34 ▲3.18 |
Dashboard /wp-admin | 3.37 ▲0.03 | 50.70 ▼18.19 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 52.15 ▲6.51 |
Add New Post /wp-admin/post-new.php | 3.22 ▼2.66 | 37.19 ▼73.37 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.51 ▲4.10 |
CRS Post Title /wp-admin/options-general.php?page=crs-post-title-shortener | 3.27 | 34.11 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for CRS Post Title Shortener
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲159 | 13.42 ▼0.93 | 9.11 ▲7.47 | 45.54 ▲1.34 |
Dashboard /wp-admin | 2,206 ▲26 | 5.68 ▲0.15 | 85.72 ▼6.21 | 38.42 ▼5.69 |
Posts /wp-admin/edit.php | 2,111 ▲14 | 1.97 ▼0.01 | 39.97 ▲1.49 | 33.07 ▼1.09 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 22.98 ▼0.18 | 679.39 ▲1.60 | 48.94 ▼13.66 |
Media Library /wp-admin/upload.php | 1,402 ▼1 | 4.13 ▼0.05 | 99.78 ▼4.61 | 45.47 ▼0.27 |
CRS Post Title /wp-admin/options-general.php?page=crs-post-title-shortener | 846 | 2.02 | 23.46 | 26.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=crs-post-title-shortener
- > Notice in wp-content/plugins/crs-post-title-shortener/admin/partials/crs-post-title-shortener-admin-display.php+31
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/crs-post-title-shortener/public/partials/crs-post-title-shortener-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/crs-post-title-shortener/admin/partials/crs-post-title-shortener-admin-display.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=crs-post-title-shortener
- > Network (severe)
wp-content/plugins/crs-post-title-shortener/admin/css/crs-post-title-shortener-admin.css?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=crs-post-title-shortener
- > Network (severe)
wp-content/plugins/crs-post-title-shortener/admin/js/crs-post-title-shortener-admin.js?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== crs-post-title-shortener ===
)
crs-post-title-shortener/CRS-Post-Title-Shortener.php 85% from 13 tests
The main file in "CRS Post Title Shortener" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("crs-post-title-shortener.php" instead of "CRS-Post-Title-Shortener.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin315 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 150 | 558 | 309 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin