Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼8.50ms] Passed 4 tests
Server-side resources used by SMNTCS Pinterest Save Button
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 36.99 ▼1.17 |
Dashboard /wp-admin | 3.32 ▼0.03 | 46.26 ▼14.23 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.82 ▼3.19 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.17 ▼15.40 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.42 ▲2.90 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for SMNTCS Pinterest Save Button
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.25 ▼1.12 | 1.60 ▼0.23 | 42.93 ▲1.40 |
Dashboard /wp-admin | 2,203 ▲12 | 4.86 ▼1.02 | 94.89 ▼5.36 | 37.29 ▼4.48 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.05 | 39.75 ▼0.48 | 34.87 ▼1.83 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.23 ▼0.07 | 661.14 ▲26.23 | 62.76 ▲7.61 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.33 ▲0.14 | 95.26 ▼11.21 | 42.44 ▼7.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
The SRP test was a success
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: pinterest, pinterest button, pinterest save button
smntcs-pinterest-save-button/smntcs-pinterest-save-button.php Passed 13 tests
The principal PHP file in "SMNTCS Pinterest Save Button" v. 1.6 is loaded by WordPress automatically on each request
97 characters long description:
Adds a Pinterest Save Button to your images that becomes visible when a visitor hovers the image.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected213 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 14 | 32 | 68 |
JSON | 2 | 0 | 0 | 61 |
XML | 1 | 13 | 14 | 51 |
Markdown | 1 | 22 | 0 | 33 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected