Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼13.57ms] Passed 4 tests
Analyzing server-side resources used by Limit Post Titles
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.88 ▲5.06 |
Dashboard /wp-admin | 3.32 ▼0.03 | 44.01 ▼13.57 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 42.58 ▼18.86 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 80.29 ▼21.74 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.85 ▼0.12 |
Limit Post Titles /wp-admin/options-general.php?page=sr_limiter | 3.23 | 30.04 |
Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Limit Post Titles: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲58 | 13.68 ▼1.08 | 5.02 ▲3.08 | 44.73 ▲3.33 |
Dashboard /wp-admin | 2,207 ▲58 | 5.84 ▲0.24 | 97.44 ▲2.69 | 37.58 ▼6.23 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.01 | 37.94 ▼3.70 | 31.02 ▼3.03 |
Add New Post /wp-admin/post-new.php | 1,536 ▲14 | 23.08 ▼0.04 | 657.44 ▲44.85 | 60.36 ▲8.68 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.24 ▼0.04 | 98.75 ▲2.53 | 41.32 ▼1.00 |
Limit Post Titles /wp-admin/options-general.php?page=sr_limiter | 855 | 2.03 | 23.44 | 27.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/limit-post-titles/limit-post-titles.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/limit-post-titles/settings.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 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
8 plugin tags: limit, limiter, posts, cms, dashboard...
limit-post-titles/limit-post-titles.php Passed 13 tests
The main PHP file in "Limit Post Titles" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
43 characters long description:
Limit post titles using JS in the dashboard
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 detected158 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 15 | 43 | 81 |
JavaScript | 2 | 3 | 4 | 59 |
CSS | 2 | 2 | 6 | 18 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected