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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▲1.65ms] Passed 4 tests
This is a short check of server-side resources used by SM Team
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 47.80 ▲8.76 |
Dashboard /wp-admin | 3.40 ▲0.09 | 53.82 ▼6.40 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 54.40 ▲3.79 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 96.89 ▲9.36 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.29 ▲0.46 |
Add New Team Member /wp-admin/post-new.php?post_type=sm_team | 3.44 | 48.38 |
All Team Members /wp-admin/edit.php?post_type=sm_team | 3.36 | 42.46 |
Settings /wp-admin/edit.php?post_type=sm_team&page=settings | 3.29 | 28.60 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for SM Team
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,975 ▲214 | 14.12 ▼0.20 | 9.82 ▲7.90 | 37.96 ▼3.92 |
Dashboard /wp-admin | 2,263 ▲60 | 5.00 ▼0.89 | 114.27 ▲4.31 | 43.64 ▼0.74 |
Posts /wp-admin/edit.php | 2,137 ▲34 | 2.22 ▲0.12 | 39.14 ▲2.08 | 36.68 ▲3.65 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 23.32 ▲5.81 | 681.85 ▼11.27 | 57.25 ▲3.20 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.41 ▲0.25 | 97.89 ▼24.53 | 42.48 ▼7.39 |
Add New Team Member /wp-admin/post-new.php?post_type=sm_team | 2,521 | 7.88 | 174.91 | 80.92 |
All Team Members /wp-admin/edit.php?post_type=sm_team | 1,166 | 2.19 | 31.45 | 31.26 |
Settings /wp-admin/edit.php?post_type=sm_team&page=settings | 853 | 2.13 | 27.98 | 31.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/sm-team/includes/themes/test.php
- > /wp-content/plugins/sm-team/includes/sm_team_settings_page.php
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/sm-team/includes/themes/3.php:4
- > PHP Notice
Undefined variable: query in wp-content/plugins/sm-team/includes/themes/3.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sm-team/includes/sm-team-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/sm-team/includes/themes/1.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sm-team/includes/sm-team-shortcoads.php:13
- > PHP Notice
Undefined variable: query in wp-content/plugins/sm-team/includes/themes/1.php on line 4
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/sm-team/includes/themes/2.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sm-team/includes/class/sm-team-post-meta.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sm-team/includes/class/sm-team-post-type.php:10
- > PHP Notice
Undefined variable: query in wp-content/plugins/sm-team/includes/themes/default.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Please describe screenshot #2 in sm-team/assets to your readme.txt
sm-team/sm-team.php Passed 13 tests
Analyzing the main PHP file in "SM Team" version 2.0.0
59 characters long description:
A wordpress plugin for manage and display team member list.
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
Everything looks great! No dangerous files found in this plugin7,816 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 34 | 38 | 6,999 |
PHP | 12 | 69 | 36 | 722 |
JavaScript | 2 | 34 | 31 | 95 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 13.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 4.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/web.png | 2.60KB | 1.80KB | ▼ 30.78% |
img/web2.png | 0.68KB | 0.43KB | ▼ 35.69% |
img/twitter.png | 17.95KB | 0.91KB | ▼ 94.91% |
img/google-plus.png | 17.95KB | 0.76KB | ▼ 95.77% |
img/beshto.png | 1.80KB | 1.53KB | ▼ 15.24% |