Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'activation' not found or invalid function name
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.87ms] Passed 4 tests
This is a short check of server-side resources used by Theme Junkie Features Content
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 37.33 ▼10.20 |
Dashboard /wp-admin | 3.39 ▲0.09 | 45.92 ▼2.78 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 50.31 ▲5.41 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 93.82 ▼6.20 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 33.98 ▼0.31 |
Add New /wp-admin/post-new.php?post_type=feature | 3.44 | 50.69 |
Features /wp-admin/edit.php?post_type=feature | 3.38 | 42.98 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Theme Junkie Features Content
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲73 | 13.63 ▼0.57 | 1.66 ▼0.34 | 46.15 ▲2.88 |
Dashboard /wp-admin | 2,233 ▲50 | 4.82 ▼0.11 | 99.66 ▼8.35 | 42.74 ▼2.31 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.01 ▲0.04 | 41.48 ▲4.05 | 35.08 ▲4.68 |
Add New Post /wp-admin/post-new.php | 1,557 ▲43 | 23.40 ▼0.01 | 605.33 ▼93.04 | 64.08 ▲4.99 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.23 ▲0.07 | 95.20 ▼0.15 | 43.85 ▼2.70 |
Add New /wp-admin/post-new.php?post_type=feature | 2,278 | 7.59 | 174.62 | 65.63 |
Features /wp-admin/edit.php?post_type=feature | 1,286 | 3.43 | 45.50 | 28.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
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
Please fix the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-junkie-features-content/admin/admin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-junkie-features-content/admin/metabox.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/theme-junkie-features-content/inc/messages.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-junkie-features-content/inc/post-type.php:14
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Features screen), #2 (Meta boxes)
theme-junkie-features-content/tj-features-content.php 92% from 13 tests
The main PHP script in "Theme Junkie Features Content" version 0.1.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("theme-junkie-features-content.php" instead of "tj-features-content.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin340 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 93 | 216 | 203 |
PO File | 1 | 32 | 33 | 90 |
JavaScript | 1 | 14 | 17 | 27 |
CSS | 1 | 3 | 0 | 20 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.02MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 11.70KB | 11.59KB | ▼ 0.88% |
screenshot-2.png | 3.97KB | 3.99KB | 0.00% |