Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼1.72MB] [CPU: ▼49.95ms] Passed 4 tests
This is a short check of server-side resources used by WP Recently Viewed
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 9.67 ▼26.06 |
Dashboard /wp-admin | 2.29 ▼1.05 | 12.44 ▼45.74 |
Posts /wp-admin/edit.php | 2.30 ▼1.06 | 9.84 ▼36.39 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.59 | 10.70 ▼90.08 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 10.30 ▼27.60 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_wp_recently_viewed_widget |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Recently Viewed
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲5 | 14.32 ▼0.03 | 1.92 ▼0.09 | 36.78 ▼5.13 |
Dashboard /wp-admin | 2,195 ▲17 | 5.61 ▼0.11 | 89.55 ▼14.16 | 42.90 ▼2.13 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.04 | 38.58 ▲2.63 | 36.11 ▼0.27 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.92 ▼0.82 | 643.12 ▼32.77 | 59.26 ▲3.34 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.19 ▼0.03 | 94.75 ▼13.38 | 41.63 ▼8.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in wp_recently_viewed_widget is deprecated since version 4.3.0! Use __construct() instead.
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_wp_recently_viewed_widget
- theysaidso_admin_options
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 no errors were found, this is by no means 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× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-recently-viewed/wp-recently-viewed.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: recently, viewed, visitor
wp-recently-viewed/wp-recently-viewed.php Passed 13 tests
The main PHP file in "WP Recently Viewed" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
88 characters long description:
Let visitors see there recently view post. 讓訪客查看他們最近訪問過的文章
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin195 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 6 | 1 | 86 |
PHP | 1 | 18 | 34 | 59 |
PO File | 2 | 8 | 8 | 50 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin