Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼13.87ms] Passed 4 tests
Analyzing server-side resources used by SMWPP-CTA
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.49 ▼4.90 |
Dashboard /wp-admin | 3.39 ▲0.05 | 50.40 ▼21.63 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 50.12 ▼0.43 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 85.60 ▼28.50 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 41.26 ▲3.75 |
Social Media CTA /wp-admin/options-general.php?page=smwpp-cta-settings-page | 3.29 | 36.67 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SMWPP-CTA
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.48 ▲0.12 | 1.55 ▼0.20 | 47.01 ▲4.76 |
Dashboard /wp-admin | 2,228 ▲28 | 4.87 ▼1.02 | 99.70 ▼1.97 | 37.59 ▼2.31 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.05 ▲0.08 | 37.25 ▲0.81 | 32.88 ▼7.16 |
Add New Post /wp-admin/post-new.php | 1,555 ▲21 | 22.94 ▼0.16 | 641.76 ▼18.84 | 62.29 ▼11.91 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.14 ▼0.14 | 112.85 ▼2.83 | 46.14 ▼5.73 |
Social Media CTA /wp-admin/options-general.php?page=smwpp-cta-settings-page | 975 | 2.06 | 24.36 | 34.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smwpp-cta/smwpp-cta.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #2, #3 in smwpp-cta/assets to your readme.txt
smwpp-cta/smwpp-cta.php 85% from 13 tests
The main file in "SMWPP-CTA" v. 1.3.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Requires PHP: The required version number must match the one declared in readme.txt ("5.4" instead of "7.2")
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin393 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 34 | 20 | 199 |
JavaScript | 2 | 9 | 18 | 130 |
CSS | 2 | 14 | 2 | 52 |
SVG | 1 | 0 | 0 | 9 |
Markdown | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
social_media_wordpress_plugin_setting_Screenshot.png | 96.34KB | 33.88KB | ▼ 64.84% |