Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼2.79ms] Passed 4 tests
An overview of server-side resources used by WP T-Shape
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 42.21 ▼1.55 |
Dashboard /wp-admin | 3.40 ▲0.10 | 52.74 ▲1.04 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 52.14 ▲2.41 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 86.85 ▼13.04 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 44.08 ▲5.75 |
WP T-Shape Options /wp-admin/options-general.php?page=wp-t-shape/wp-tshape.php | 3.29 | 36.26 |
Add New T-Shape /wp-admin/post-new.php?post_type=t_shape | 3.38 | 39.76 |
All T-Shapes /wp-admin/edit.php?post_type=t_shape | 3.37 | 40.91 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 25 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_bur_ts_level_types |
wp_bur_ts_skills |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP T-Shape: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲113 | 13.90 ▼0.53 | 1.79 ▲0.15 | 47.75 ▲2.69 |
Dashboard /wp-admin | 2,258 ▲70 | 5.05 ▲0.13 | 102.68 ▼2.37 | 41.79 ▲0.37 |
Posts /wp-admin/edit.php | 2,143 ▲51 | 2.28 ▲0.28 | 37.69 ▼5.93 | 33.19 ▼4.06 |
Add New Post /wp-admin/post-new.php | 1,556 ▲42 | 23.47 ▲5.90 | 691.13 ▲2.61 | 36.75 ▼28.51 |
Media Library /wp-admin/upload.php | 1,443 ▲55 | 4.33 ▲0.12 | 117.26 ▼2.11 | 47.55 ▼2.40 |
WP T-Shape Options /wp-admin/options-general.php?page=wp-t-shape/wp-tshape.php | 1,183 | 2.43 | 51.30 | 27.83 |
Add New T-Shape /wp-admin/post-new.php?post_type=t_shape | 1,704 | 2.84 | 64.36 | 46.65 |
All T-Shapes /wp-admin/edit.php?post_type=t_shape | 1,116 | 2.24 | 35.71 | 28.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% 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)
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=t_shape
- > Warning in wp-content/plugins/wp-t-shape/includes/backend/metaboxes.php+14
count(): Parameter must be an array or an object that implements Countable
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: profile, cv, skills, t-shape, diagram
wp-t-shape/wp-tshape.php 85% from 13 tests
Analyzing the main PHP file in "WP T-Shape" version 1.0
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-t-shape.php" instead of "wp-tshape.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Everything looks great! No dangerous files found in this plugin1,804 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 227 | 107 | 609 |
CSS | 3 | 60 | 37 | 578 |
Sass | 2 | 68 | 2 | 345 |
PO File | 2 | 108 | 100 | 267 |
JavaScript | 1 | 0 | 1 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 9.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 1 | 50.00% |
▷ Concrete classes | 1 | 50.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 2 | 20.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 1 | 10.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
2 PNG files occupy 0.18MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/backend/options-helper.png | 21.58KB | 11.04KB | ▼ 48.84% |
includes/backend/all-logos.png | 166.62KB | 65.87KB | ▼ 60.47% |