Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.87MB] [CPU: ▲3.83ms] Passed 4 tests
A check of server-side resources used by WZ Followed Posts - Display what visitors are reading
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.48 | 47.75 ▲8.89 |
Dashboard /wp-admin | 4.32 ▲0.98 | 54.68 ▼5.02 |
Posts /wp-admin/edit.php | 4.38 ▲1.02 | 51.08 ▲4.18 |
Add New Post /wp-admin/post-new.php | 6.93 ▲1.04 | 100.35 ▲7.26 |
Media Library /wp-admin/upload.php | 4.25 ▲1.02 | 48.23 ▲17.19 |
Followed Posts /wp-admin/options-general.php?page=wherego_options_page | 4.29 | 61.19 |
WFP Tools /wp-admin/tools.php?page=wherego_tools_page | 4.19 | 38.31 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_wherego_widget |
wherego_settings |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WZ Followed Posts - Display what visitors are reading
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.34 ▼0.01 | 1.81 ▼0.17 | 43.95 ▲5.65 |
Dashboard /wp-admin | 2,206 ▲34 | 5.66 ▼0.17 | 84.81 ▼16.55 | 38.66 ▼3.37 |
Posts /wp-admin/edit.php | 2,118 ▲21 | 1.97 ▼0.04 | 33.57 ▼4.10 | 34.56 ▲2.02 |
Add New Post /wp-admin/post-new.php | 6,417 ▲4,891 | 27.15 ▲3.64 | 822.92 ▲181.86 | 59.67 ▲3.33 |
Media Library /wp-admin/upload.php | 1,408 ▲14 | 4.20 ▼0.01 | 99.73 ▲0.09 | 42.47 ▼0.20 |
Followed Posts /wp-admin/options-general.php?page=wherego_options_page | 2,234 | 5.95 | 139.58 | 93.10 |
WFP Tools /wp-admin/tools.php?page=wherego_tools_page | 1,115 | 2.08 | 39.91 | 31.50 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_wherego_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: followed posts, related posts, where did they go from here
where-did-they-go-from-here/where-did-they-go-from-here.php Passed 13 tests
Analyzing the main PHP file in "WZ Followed Posts - Display what visitors are reading" version 3.1.0
104 characters long description:
The best way to display posts followed by users a.k.a. "Readers who viewed this page, also viewed" links
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
No dangerous file extensions were detected5,018 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 1,071 | 2,750 | 3,742 |
PO File | 1 | 211 | 255 | 551 |
JavaScript | 13 | 73 | 61 | 549 |
CSS | 2 | 10 | 0 | 64 |
JSON | 1 | 0 | 0 | 58 |
Markdown | 1 | 30 | 0 | 46 |
XML | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 22.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 1 | 4.76% |
Methods | 183 | |
▷ Static methods | 73 | 39.89% |
▷ Public methods | 181 | 98.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.09% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 6 | 75.00% |
▷ Class constants | 2 | 25.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/images/fb.png | 1.51KB | 1.59KB | 0.00% |
includes/admin/images/paypal-donate.png | 4.27KB | 4.43KB | 0.00% |
default.png | 4.22KB | 4.40KB | 0.00% |