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.00MB] [CPU: ▼2.73ms] Passed 4 tests
Server-side resources used by Simple product counter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.58 ▼1.34 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.52 ▼6.81 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.96 ▼0.65 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.08 ▲0.93 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.98 ▼2.13 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Simple product counter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 13.21 ▼1.04 | 1.91 ▲0.15 | 39.76 ▼3.23 |
Dashboard /wp-admin | 2,215 ▲27 | 5.85 ▲0.75 | 106.91 ▼8.45 | 38.01 ▼7.79 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.05 ▲0.05 | 35.98 ▲0.01 | 35.86 ▼4.39 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 22.97 ▼0.26 | 646.37 ▼16.29 | 58.27 ▼0.72 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.25 ▼0.01 | 94.23 ▼3.52 | 42.82 ▼6.62 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: notice, product, count, post views, woocommerce...
simple-product-counter/simple-product-counter.php Passed 13 tests
Analyzing the main PHP file in "Simple product counter" version 2.2.0
55 characters long description:
Notice with product sales and views for certain period.
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 plugin1,512 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 104 | 35 | 721 |
CSS | 3 | 7 | 7 | 527 |
JavaScript | 1 | 21 | 4 | 141 |
SVG | 6 | 30 | 3 | 123 |
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.46 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 4.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 25.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 31.68KB | 10.80KB | ▼ 65.91% |