Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Error in wp-content/plugins/hide-posts-without-post-title/hpwpt.php+42
Uncaught Error: Class 'hpwpt\Utils' not found in wp-content/plugins/hide-posts-without-post-title/hpwpt.php:42
Stack trace:
#0 wp-content/plugins/hide-posts-without-post-title/hpwpt.php(27): hpwpt\Init->__construct()
#1 wp-content/plugins/hide-posts-without-post-title/hpwpt.php(195): hpwpt\Init::get_instance()
#2 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
#3 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.50ms] Passed 4 tests
Server-side resources used by Hide posts without post title
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.32 ▼3.49 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.84 ▼14.88 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.45 ▼4.62 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.63 ▼11.02 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.85 ▼0.29 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Hide posts without post title
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.27 ▼0.08 | 1.98 ▼0.19 | 40.25 ▼2.77 |
Dashboard /wp-admin | 2,192 ▲18 | 5.52 ▼0.06 | 85.11 ▼7.63 | 39.18 ▼3.76 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 1.99 ▼0.00 | 38.65 ▼1.10 | 37.41 ▼1.55 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.02 ▲0.04 | 688.63 ▼7.16 | 52.94 ▼0.36 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.23 ▲0.04 | 102.04 ▼13.18 | 44.47 ▼4.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function hpwpt\\Admin\\add_action() in wp-content/plugins/hide-posts-without-post-title/Admin/MetaBox.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function hpwpt\\Admin\\add_action() in wp-content/plugins/hide-posts-without-post-title/Admin/Settings.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
hide-posts-without-post-title/hpwpt.php 85% from 13 tests
"Hide posts without post title" version 1.0.6.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hide-posts-without-post-title.php" instead of "hpwpt.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected472 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 52 | 81 | 416 |
PO File | 1 | 17 | 21 | 56 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.77 |
Average class complexity | 24.50 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 5.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 6 | 30.00% |
▷ Public methods | 17 | 85.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 15.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
There were not PNG files found in your plugin