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.05MB] [CPU: ▼5.32ms] Passed 4 tests
A check of server-side resources used by Simple Content Templates for Blog Posts & Pages
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.88 ▼10.92 |
Dashboard /wp-admin | 3.35 ▲0.05 | 45.13 ▼1.64 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 49.69 ▲2.14 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.72 ▼8.65 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 34.44 ▼0.05 |
Upgrade /wp-admin/edit.php?post_type=act_template&page=sct-upgrade | 3.27 | 39.12 |
Content Templates /wp-admin/edit.php?post_type=act_template | 3.32 | 38.19 |
Settings /wp-admin/edit.php?post_type=act_template&page=sct-settings | 3.29 | 33.43 |
Add Template /wp-admin/post-new.php?post_type=act_template | 3.41 | 46.29 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 45 new files
Database: no new tables, 8 new options
New WordPress options |
---|
Simple_Content_Templates_settings |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
spt_version |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Simple Content Templates for Blog Posts & Pages: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲92 | 13.69 ▼0.55 | 1.88 ▼0.13 | 41.74 ▼3.10 |
Dashboard /wp-admin | 2,238 ▲50 | 5.80 ▲0.88 | 100.33 ▼15.14 | 41.38 ▲0.23 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.05 ▲0.00 | 40.60 ▲4.01 | 36.31 ▲1.21 |
Add New Post /wp-admin/post-new.php | 6,247 ▲4,728 | 21.70 ▼1.53 | 872.06 ▲238.98 | 61.17 ▲1.74 |
Media Library /wp-admin/upload.php | 1,423 ▲38 | 4.25 ▲0.04 | 97.56 ▼4.12 | 42.25 ▼0.67 |
Upgrade /wp-admin/edit.php?post_type=act_template&page=sct-upgrade | 854 | 2.02 | 25.54 | 47.10 |
Content Templates /wp-admin/edit.php?post_type=act_template | 1,122 | 1.93 | 31.69 | 30.91 |
Settings /wp-admin/edit.php?post_type=act_template&page=sct-settings | 895 | 2.06 | 24.97 | 29.42 |
Add Template /wp-admin/post-new.php?post_type=act_template | 2,424 | 7.63 | 169.58 | 61.91 |
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
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-comments
- widget_theysaidso_widget
- Simple_Content_Templates_settings
- widget_recent-posts
- spt_version
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/simple-post-template/admin/partials/advanced-content-templates-admin-sidecar.php:3
- > PHP Fatal error
Uncaught Error: Class 'WordPress_SimpleSettings' not found in wp-content/plugins/simple-post-template/includes/class-advanced-content-templates.php:30
- > PHP Fatal error
Uncaught Error: Call to a member function the_nonce() on null in wp-content/plugins/simple-post-template/vendor/objectivco/wordpress-simple-settings/examples/awesome-plugin/awesome-plugin-admin.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/simple-post-template/admin/partials/advanced-content-templates-admin-display.php:15
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/simple-post-template/admin/partials/advanced-content-templates-admin-upgrade.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-post-template/vendor/objectivco/wordpress-simple-settings/examples/awesome-plugin/inc/wordpress-simple-settings.php:179
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== simple-post-template ===
)
simple-post-template/simple-content-template.php 85% from 13 tests
The primary PHP file in "Simple Content Templates for Blog Posts & Pages" version 2.2.5 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("simple-post-template.php" instead of "simple-content-template.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 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,676 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 427 | 1,379 | 1,442 |
JSON | 4 | 0 | 0 | 138 |
Markdown | 2 | 54 | 0 | 96 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 15.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 3 | 21.43% |
▷ Concrete classes | 11 | 78.57% |
▷ Final classes | 0 | 0.00% |
Methods | 117 | |
▷ Static methods | 19 | 16.24% |
▷ Public methods | 109 | 93.16% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 6.84% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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