68% cp-popular-blog

Code Review | CP Popular Blog

WordPress plugin CP Popular Blog scored 68% from 54 tests.

About plugin

  • Plugin page: cp-popular-blog
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.8.2
  • WordPress version: 6.3.1
  • First release: Jul 9, 2018
  • Latest release: Dec 14, 2021
  • Number of updates: 8
  • Update frequency: every 157.0 days
  • Top authors: chandanp619 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 678 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.17MB] [CPU: ▼9.59ms] Passed 4 tests

A check of server-side resources used by CP Popular Blog
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▼0.6121.29 ▼23.84
Dashboard /wp-admin3.34 ▲0.0348.45 ▲5.88
Posts /wp-admin/edit.php3.20 ▼0.1629.65 ▼18.52
Add New Post /wp-admin/post-new.php5.92 ▲0.03110.94 ▲5.66
Media Library /wp-admin/upload.php3.26 ▲0.0334.60 ▼1.64

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: 1 new table, 7 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for CP Popular Blog
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7114.48 ▲0.211.86 ▼0.3442.73 ▼16.30
Dashboard /wp-admin2,211 ▲235.85 ▼0.05122.76 ▼11.8049.39 ▲7.79
Posts /wp-admin/edit.php2,091 ▲52.04 ▼0.0239.33 ▼1.3636.23 ▼0.33
Add New Post /wp-admin/post-new.php1,537 ▲1820.53 ▼0.57684.88 ▼24.4769.92 ▼4.97
Media Library /wp-admin/upload.php1,390 ▲24.27 ▲0.02101.79 ▼20.7148.61 ▼13.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_cp_popular_blogs
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_cppb_widget
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/cp-popular-blog/cp-popular-blogs.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cp-popular-blog/widget.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

cp-popular-blog/cp-popular-blogs.php 92% from 13 tests

The principal PHP file in "CP Popular Blog" v. 1.2.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("cp-popular-blog.php" instead of "cp-popular-blogs.php")

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
There were no executable files found in this plugin154 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ 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
PNG images were not found in this plugin