90% post-ranking-view

Code Review | Post Ranking View

WordPress plugin Post Ranking View scored 90% from 54 tests.

About plugin

  • Plugin page: post-ranking-view
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8
  • WordPress version: 6.3.1
  • First release: Jan 5, 2014
  • Latest release: Jan 15, 2014
  • Number of updates: 7
  • Update frequency: every 1.4 days
  • Top authors: leobaiano (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,289 total downloads

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.02MB] [CPU: ▼7.20ms] Passed 4 tests

This is a short check of server-side resources used by Post Ranking View
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.62 ▼7.29
Dashboard /wp-admin3.33 ▲0.0244.63 ▼5.43
Posts /wp-admin/edit.php3.38 ▲0.0247.89 ▲1.18
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.28 ▼17.09
Media Library /wp-admin/upload.php3.25 ▲0.0233.69 ▲1.00

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Post Ranking View
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.74 ▼0.581.59 ▼0.4142.01 ▼6.51
Dashboard /wp-admin2,206 ▲155.90 ▲0.0196.00 ▼11.2338.43 ▼5.34
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0539.13 ▼10.9934.43 ▼9.67
Add New Post /wp-admin/post-new.php1,533 ▼023.33 ▲0.19652.88 ▼10.2455.21 ▲1.47
Media Library /wp-admin/upload.php1,388 ▲34.17 ▼0.0494.96 ▼11.9242.31 ▼3.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
5 plugin tags: ranking posts, popular, ranking views, popular posts, posts views

post-ranking-view/post-ranking-view.php 92% from 13 tests

The main PHP file in "Post Ranking View" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin178 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11539111
Markdown131067

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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