Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼9.15ms] Passed 4 tests
This is a short check of server-side resources used by Theme Junkie Team Content
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 41.27 ▼2.26 |
Dashboard /wp-admin | 3.41 ▲0.06 | 50.73 ▼14.85 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 53.63 ▲7.77 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 98.16 ▼13.26 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 34.42 ▼6.23 |
Teams /wp-admin/edit.php?post_type=member | 3.36 | 37.60 |
Add New /wp-admin/post-new.php?post_type=member | 3.46 | 51.09 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Theme Junkie Team Content
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.28 ▼0.09 | 1.78 ▲0.03 | 41.08 ▼1.54 |
Dashboard /wp-admin | 2,222 ▲42 | 5.64 ▼0.04 | 92.90 ▼5.41 | 45.18 ▲1.78 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 1.95 ▼0.04 | 40.35 ▲4.77 | 35.79 ▲1.10 |
Add New Post /wp-admin/post-new.php | 1,549 ▲21 | 23.38 ▲0.28 | 635.55 ▼57.40 | 52.33 ▼6.47 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.19 ▼0.01 | 97.76 ▼18.65 | 45.08 ▼4.52 |
Teams /wp-admin/edit.php?post_type=member | 1,300 | 3.27 | 47.61 | 29.02 |
Add New /wp-admin/post-new.php?post_type=member | 2,443 | 7.61 | 168.15 | 68.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/edit.php?post_type=member
- > Notice in wp-content/plugins/theme-junkie-team-content/admin/admin.php+67
Trying to get property 'ID' of non-object
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× 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-team-content/inc/functions.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-junkie-team-content/inc/post-type.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-junkie-team-content/admin/metabox.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-junkie-team-content/admin/admin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/theme-junkie-team-content/inc/messages.php:13
- > PHP Fatal error
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 require attention:
- Screenshots: These screenshots require images: #1 (Team screen), #2 (Meta boxes)
theme-junkie-team-content/tj-team-content.php 92% from 13 tests
The main PHP script in "Theme Junkie Team Content" version 0.1.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("theme-junkie-team-content.php" instead of "tj-team-content.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin448 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 119 | 212 | 283 |
PO File | 1 | 46 | 47 | 118 |
JavaScript | 1 | 14 | 17 | 27 |
CSS | 1 | 3 | 0 | 20 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.17 |
▷ 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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.04MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 25.66KB | 24.86KB | ▼ 3.10% |
screenshot-2.png | 12.92KB | 13.10KB | 0.00% |