78% recent-popular-tags

Code Review | Recent Popular Tags

WordPress plugin Recent Popular Tags scored78%from 54 tests.

About plugin

  • Plugin page: recent-popular-tags
  • Plugin version: 0.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 19, 2014
  • Latest release: Jul 23, 2014
  • Number of updates: 30
  • Update frequency: every 0.2 days
  • Top authors: tpflanz (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /1,978 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.60ms] Passed 4 tests

Analyzing server-side resources used by Recent Popular Tags
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.63 ▲2.52
Dashboard /wp-admin3.34 ▲0.0351.33 ▼0.38
Posts /wp-admin/edit.php3.39 ▲0.0354.49 ▼0.78
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.23 ▼18.80
Media Library /wp-admin/upload.php3.26 ▲0.0341.13 ▲1.56

Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Recent Popular Tags
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▲0.001.65 ▼0.4840.01 ▼2.02
Dashboard /wp-admin2,199 ▲225.60 ▲0.0187.80 ▼9.6540.69 ▼1.92
Posts /wp-admin/edit.php2,104 ▲11.98 ▼0.0336.52 ▼4.9334.04 ▼2.88
Add New Post /wp-admin/post-new.php1,529 ▼223.68 ▲0.62705.50 ▼36.9554.53 ▼3.83
Media Library /wp-admin/upload.php1,401 ▲44.17 ▼0.04100.23 ▼26.0943.19 ▼12.09
Recent Popular Tags /wp-admin/rpt-options.php260.420.1014.48

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/recent-popular-tags/recent-popular-tags.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recent-popular-tags/includes/admin-page.php:76
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recent-popular-tags/includes/scripts.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/recent-popular-tags/includes/display-functions.php:70

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/rpt-options.php
    • > Network (severe)
    wp-admin/rpt-options.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: plugin, shortcode, popular, tags, recent

recent-popular-tags/recent-popular-tags.php 92% from 13 tests

This is the main PHP file of "Recent Popular Tags" version 0.3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 263 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected126 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP46118124
CSS1032

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png27.64KB11.17KB▼ 59.59%