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.04MB] [CPU: ▼3.33ms] Passed 4 tests
This is a short check of server-side resources used by Price Drop and In Stock Alert by Followprice
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.23 ▼1.88 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.56 ▼2.46 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 53.21 ▼2.11 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 99.83 ▼6.77 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.35 ▼1.99 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Price Drop and In Stock Alert by Followprice
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.30 ▼1.10 | 1.71 ▼0.11 | 50.40 ▲6.71 |
Dashboard /wp-admin | 2,224 ▲24 | 4.85 ▼1.03 | 104.27 ▼19.00 | 39.15 ▼10.48 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▲0.04 | 40.14 ▼1.34 | 35.66 ▼7.22 |
Add New Post /wp-admin/post-new.php | 1,548 ▲3 | 23.24 ▼0.01 | 614.03 ▼63.24 | 75.13 ▲7.62 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.26 ▲0.05 | 101.65 ▼14.71 | 47.41 ▼2.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
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)
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/followprice/views/notice.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/followprice/views/dashboard.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/followprice/views/header.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 31 tag instead of maximum 10
followprice/followprice.php Passed 13 tests
This is the main PHP file of "Price Drop and In Stock Alert by Followprice" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
94 characters long description:
Displays a button for customers to follow your products and get notified once the price drops.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,041 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 99 | 79 | 549 |
CSS | 1 | 42 | 5 | 273 |
JavaScript | 2 | 21 | 3 | 119 |
SVG | 2 | 0 | 2 | 100 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 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
1 PNG file occupies 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/dashboard-back.png | 97.94KB | 24.76KB | ▼ 74.72% |