Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/l-amp-team-members/team-members.php+16
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.10MB] [CPU: ▼9.78ms] Passed 4 tests
Analyzing server-side resources used by L'Amp Team Members
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 38.03 ▼5.39 |
Dashboard /wp-admin | 3.41 ▲0.07 | 52.11 ▼11.67 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 48.02 ▼4.18 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 86.29 ▼17.89 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 41.19 ▲5.90 |
Groups /wp-admin/edit-tags.php?taxonomy=l_amp_team_member_categories&post_type=l_amp_team_member | 3.33 | 38.06 |
Settings /wp-admin/edit.php?post_type=l_amp_team_member&page=l_amp_tm_settings | 3.30 | 32.96 |
Members /wp-admin/edit.php?post_type=l_amp_team_member | 3.38 | 37.92 |
Add New /wp-admin/post-new.php?post_type=l_amp_team_member | 3.48 | 54.30 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
l-amp-tm-options |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for L'Amp Team Members
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲95 | 14.37 ▲0.14 | 2.00 ▲0.29 | 44.54 ▲2.26 |
Dashboard /wp-admin | 2,232 ▲57 | 5.70 ▲0.08 | 85.65 ▼18.13 | 63.88 ▲18.31 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.01 ▲0.01 | 34.56 ▼6.56 | 33.35 ▼4.48 |
Add New Post /wp-admin/post-new.php | 1,558 ▲10 | 23.22 ▲0.01 | 773.51 ▲176.88 | 59.57 ▼7.18 |
Media Library /wp-admin/upload.php | 1,431 ▲28 | 4.31 ▲0.06 | 115.22 ▲13.62 | 69.30 ▲23.88 |
Groups /wp-admin/edit-tags.php?taxonomy=l_amp_team_member_categories&post_type=l_amp_team_member | 1,314 | 2.29 | 27.88 | 32.84 |
Settings /wp-admin/edit.php?post_type=l_amp_team_member&page=l_amp_tm_settings | 1,029 | 2.01 | 23.09 | 29.51 |
Members /wp-admin/edit.php?post_type=l_amp_team_member | 1,113 | 1.98 | 32.11 | 28.35 |
Add New /wp-admin/post-new.php?post_type=l_amp_team_member | 2,542 | 7.68 | 175.11 | 139.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- l-amp-tm-options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/l-amp-team-members/inc/metabox.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/l-amp-team-members/inc/metabox.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== l-amp-team-members ===
)
l-amp-team-members/team-members.php 92% from 13 tests
The primary PHP file in "L'Amp Team Members" version 1.4.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("l-amp-team-members.php" instead of "team-members.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
Everything looks great! No dangerous files found in this plugin527 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 61 | 9 | 368 |
PO File | 1 | 31 | 62 | 87 |
CSS | 1 | 25 | 0 | 72 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 0 | |
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 | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
27 PNG files occupy 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/social/round-32/twitter.png | 3.44KB | 0.68KB | ▼ 80.13% |
img/social/round-32/instagram.png | 3.51KB | 0.77KB | ▼ 78.13% |
img/icon16.png | 0.34KB | 0.21KB | ▼ 38.79% |
img/social/round-32/linkedin.png | 3.46KB | 0.69KB | ▼ 79.96% |
img/social/round-16/googleplus.png | 3.12KB | 0.44KB | ▼ 86.02% |