Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼3.18ms] Passed 4 tests
An overview of server-side resources used by A Tiny Post Content Template Interpreter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 43.03 ▼0.68 |
Dashboard /wp-admin | 3.55 ▲0.20 | 53.88 ▼6.54 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 54.16 ▲4.71 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 95.25 ▼10.20 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 40.87 ▲8.95 |
Post Content Templates /wp-admin/edit.php?post_type=mt_content_template | 3.56 | 43.68 |
A Tiny Post Content Template Interpreter /wp-admin/options-general.php?page=tpcti-settings-page | 3.44 | 32.63 |
Add New /wp-admin/post-new.php?post_type=mt_content_template | 3.59 | 52.27 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for A Tiny Post Content Template Interpreter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 13.24 ▼1.19 | 1.66 ▼0.14 | 41.11 ▼0.30 |
Dashboard /wp-admin | 2,237 ▲49 | 5.88 ▲0.97 | 102.78 ▼9.86 | 39.88 ▲1.01 |
Posts /wp-admin/edit.php | 2,123 ▲31 | 2.15 ▲0.15 | 39.50 ▲3.57 | 35.23 ▲0.62 |
Add New Post /wp-admin/post-new.php | 1,676 ▲157 | 17.65 ▼5.70 | 655.89 ▼0.23 | 54.66 ▼4.95 |
Media Library /wp-admin/upload.php | 1,416 ▲25 | 4.20 ▼0.01 | 109.33 ▲8.29 | 46.50 ▲5.09 |
Post Content Templates /wp-admin/edit.php?post_type=mt_content_template | 1,625 | 2.03 | 32.43 | 33.44 |
A Tiny Post Content Template Interpreter /wp-admin/options-general.php?page=tpcti-settings-page | 921 | 2.06 | 25.51 | 25.37 |
Add New /wp-admin/post-new.php?post_type=mt_content_template | 2,313 | 7.61 | 174.45 | 59.45 |
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 detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/a-tiny-post-content-template-interpreter/magic-fields-2-dumb-macros.php on line 45
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/a-tiny-post-content-template-interpreter/magic-fields-2-dumb-macros.php on line 45
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/a-tiny-post-content-template-interpreter/magic-fields-2-dumb-macros.php on line 45
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/a-tiny-post-content-template-interpreter/magic-fields-2-dumb-macros.php:60
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/a-tiny-post-content-template-interpreter/tiny-post-content-template-interpreter-loader.php:47
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
a-tiny-post-content-template-interpreter/tiny-post-content-template-interpreter-loader.php 92% from 13 tests
This is the main PHP file of "A Tiny Post Content Template Interpreter" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("a-tiny-post-content-template-interpreter.php" instead of "tiny-post-content-template-interpreter-loader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,572 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 134 | 254 | 1,368 |
JavaScript | 1 | 5 | 31 | 118 |
CSS | 1 | 5 | 2 | 86 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 42 | |
▷ Named functions | 7 | 16.67% |
▷ Anonymous functions | 35 | 83.33% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.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
No PNG images were found in this plugin