74% popular-tags

Code Review | Popular Tags

WordPress plugin Popular Tags scored 74% from 54 tests.

About plugin

  • Plugin page: popular-tags
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.4
  • WordPress version: 6.3.1
  • First release: Feb 16, 2015
  • Latest release: Feb 16, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: eric_wijaya_87 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,105 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.58ms] Passed 4 tests

This is a short check of server-side resources used by Popular Tags
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1739.27 ▲4.11
Dashboard /wp-admin3.33 ▲0.0245.23 ▲0.47
Posts /wp-admin/edit.php3.44 ▲0.0949.55 ▲2.24
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.61 ▼3.61
Media Library /wp-admin/upload.php3.25 ▲0.0233.46 ▼1.42

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 7 new options
New tables
wp_tags_visit
New WordPress options
theysaidso_admin_options
db_upgraded
widget_popular_tags_widget
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Popular Tags: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲4414.42 ▼0.391.74 ▼0.1033.55 ▼10.41
Dashboard /wp-admin2,215 ▲94.82 ▼0.05111.29 ▲13.1046.17 ▲6.41
Posts /wp-admin/edit.php2,104 ▲151.99 ▼0.0439.01 ▲5.5341.55 ▲7.80
Add New Post /wp-admin/post-new.php1,372 ▼16121.44 ▼1.75619.25 ▼93.3760.24 ▲2.03
Media Library /wp-admin/upload.php1,394 ▲94.17 ▼0.0497.33 ▼5.2143.68 ▼1.97

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_tags_visit
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_popular_tags_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/popular-tags/class/popular-tags-widget.php:5

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Widget options) image not found
The official readme.txt is a good inspiration

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

The entry point to "Popular Tags" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "3.3")

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
There were no executable files found in this plugin217 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36748201
JavaScript16116

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity12.50
▷ Minimum class complexity12.00
▷ Maximum class complexity13.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods325.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin