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: ▲1.41MB] [CPU: ▲2.42ms] Passed 4 tests
Analyzing server-side resources used by Affiliate Product Review
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.92 ▲1.45 | 45.13 ▲4.66 |
Dashboard /wp-admin | 4.74 ▲1.40 | 63.63 ▼2.27 |
Posts /wp-admin/edit.php | 4.82 ▲1.47 | 66.79 ▲19.82 |
Add New Post /wp-admin/post-new.php | 7.29 ▲1.40 | 92.77 ▼10.06 |
Media Library /wp-admin/upload.php | 4.60 ▲1.38 | 53.58 ▲17.36 |
Server storage [IO: ▲1.83MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 161 new files
Database: no new tables, 8 new options
New WordPress options |
---|
apr_version |
apr_isntalled |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Affiliate Product Review
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.26 ▼1.03 | 4.84 ▲3.11 | 39.74 ▼5.11 |
Dashboard /wp-admin | 2,206 ▲15 | 5.85 ▲0.96 | 119.06 ▲8.62 | 42.89 ▲0.42 |
Posts /wp-admin/edit.php | 2,284 ▲198 | 3.63 ▲1.62 | 80.48 ▲44.71 | 35.76 ▲0.73 |
Add New Post /wp-admin/post-new.php | 6,576 ▲5,062 | 28.99 ▲11.37 | 966.01 ▲344.73 | 40.66 ▼24.35 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.14 ▼0.09 | 80.40 ▼19.25 | 41.36 ▼0.53 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- apr_isntalled
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- apr_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/affiliate-product-review/include/Frontend/Review.php:11
- > 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)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: product review, review, product, affiliate
affiliate-product-review/affiliate-product-review.php 92% from 13 tests
The main PHP script in "Affiliate Product Review" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
There were no executable files found in this plugin38,913 lines of code in 136 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 88 | 3,470 | 1,515 | 15,172 |
JavaScript | 5 | 1,293 | 494 | 6,541 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
Sass | 16 | 969 | 3 | 5,667 |
CSS | 5 | 436 | 512 | 5,031 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 24.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 6.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 64 | |
▷ Abstract classes | 2 | 3.12% |
▷ Concrete classes | 62 | 96.88% |
▷ Final classes | 1 | 1.61% |
Methods | 259 | |
▷ Static methods | 43 | 16.60% |
▷ Public methods | 258 | 99.61% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.39% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |