10% wp-recent-views

Code Review | WP Recent Views

WordPress plugin WP Recent Views scored10%from 54 tests.

About plugin

  • Plugin page: wp-recent-views
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3+
  • WordPress version: 6.3.1
  • First release: Jul 20, 2013
  • Latest release: Jul 24, 2013
  • Number of updates: 5
  • Update frequency: every 2.8 days
  • Top authors: jim912 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,927 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wp-recent-views/widget.php+4
    Methods with the same name as their class will not be constructors in a future version of PHP; WP_Recent_Views_Widget has a deprecated constructor

Server metrics [RAM: ▼1.88MB] [CPU: ▼59.59ms] Passed 4 tests

A check of server-side resources used by WP Recent Views
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.366.94 ▼42.04
Dashboard /wp-admin2.12 ▼1.185.73 ▼48.18
Posts /wp-admin/edit.php2.12 ▼1.235.95 ▼53.49
Add New Post /wp-admin/post-new.php2.12 ▼3.766.71 ▼94.65
Media Library /wp-admin/upload.php2.12 ▼1.115.14 ▼31.47

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-views
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Recent Views
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.14 ▼0.392.48 ▲0.8843.11 ▲2.98
Dashboard /wp-admin2,199 ▲225.64 ▲0.0698.32 ▲9.6348.17 ▲2.96
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0235.59 ▼0.4932.56 ▼3.70
Add New Post /wp-admin/post-new.php1,528 ▲223.05 ▼0.21623.30 ▼51.3963.62 ▲2.68
Media Library /wp-admin/upload.php1,404 ▲44.21 ▲0.0499.39 ▲4.3944.20 ▲0.05
Recent Views /wp-admin/wp-recent-views.php260.420.0813.40

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% 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 without warnings or errors
    • > Deprecated in wp-content/plugins/wp-recent-views/widget.php+4
    Methods with the same name as their class will not be constructors in a future version of PHP; WP_Recent_Views_Widget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • aep_end_date
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-views
    • 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)
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
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/wp-recent-views.php
    • > Network (severe)
    wp-admin/wp-recent-views.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tested up to: The plugin version is formatted incorrectly
The official readme.txt might help

wp-recent-views/wp-recent-views.php Passed 13 tests

This is the main PHP file of "WP Recent Views" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
47 characters long description:
Display a list of pages you have seen recently.

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
Good job! No executable or dangerous file extensions detected442 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP65413349
PO File1141552
JavaScript27041

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity9.50
▷ Minimum class complexity5.00
▷ Maximum class complexity14.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin