Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼3.98ms] Passed 4 tests
Server-side resources used by WP Subtitle
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 43.25 ▲3.06 |
Dashboard /wp-admin | 3.53 ▲0.22 | 51.89 ▲4.68 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 48.28 ▲0.63 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 83.14 ▼17.72 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 34.39 ▼1.87 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP Subtitle
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 14.43 ▼0.15 | 1.71 ▼0.16 | 43.96 ▲3.77 |
Dashboard /wp-admin | 2,203 ▲12 | 5.91 ▲1.02 | 109.75 ▲11.25 | 41.67 ▼2.50 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.02 ▲0.01 | 32.99 ▼7.13 | 34.02 ▼4.18 |
Add New Post /wp-admin/post-new.php | 6,217 ▲4,675 | 25.93 ▲7.56 | 834.99 ▲221.39 | 65.19 ▲2.97 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.19 ▼0.01 | 96.02 ▼4.17 | 42.86 ▲0.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% 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
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-subtitle/wp-subtitle.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-subtitle/plugin/admin/admin.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-subtitle/plugin/plugin.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-subtitle/plugin/admin/pointers.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-subtitle/plugin/includes/shortcode.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: title, subhead, content, alternate title, subheading...
wp-subtitle/wp-subtitle.php Passed 13 tests
Analyzing the main PHP file in "WP Subtitle" version 3.4.1
88 characters long description:
Adds a subtitle field to pages and posts. Possible to add support for custom post types.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,123 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 392 | 833 | 764 |
Markdown | 2 | 144 | 0 | 280 |
PO File | 1 | 10 | 13 | 40 |
JavaScript | 2 | 16 | 15 | 39 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.60 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 40 | 57.97% |
▷ Public methods | 52 | 75.36% |
▷ Protected methods | 1 | 1.45% |
▷ Private methods | 16 | 23.19% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin