83% wp-xperts-popular-posts

Code Review | WP-xPerts Popular Posts

WordPress plugin WP-xPerts Popular Posts scored 83% from 54 tests.

About plugin

  • Plugin page: wp-xperts-popular...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.7.2
  • WordPress version: 6.3.1
  • First release: Aug 25, 2016
  • Latest release: Mar 6, 2017
  • Number of updates: 13
  • Update frequency: every 15.5 days
  • Top authors: wpxperts15 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,281 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.62ms] Passed 4 tests

Server-side resources used by WP-xPerts Popular Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.65 ▼3.52
Dashboard /wp-admin3.36 ▲0.0643.89 ▼5.43
Posts /wp-admin/edit.php3.48 ▲0.1247.42 ▼2.91
Add New Post /wp-admin/post-new.php5.94 ▲0.0697.76 ▼2.63
Media Library /wp-admin/upload.php3.29 ▲0.0635.02 ▲1.24
Popular Posts /wp-admin/options-general.php?page=wx-popular-posts3.3032.04

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_wx_create_pp_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP-xPerts Popular Posts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲5113.24 ▼1.121.68 ▼0.5341.64 ▼3.52
Dashboard /wp-admin2,215 ▲304.87 ▼0.03107.80 ▲2.8740.23 ▼2.08
Posts /wp-admin/edit.php2,095 ▲32.05 ▼0.0138.95 ▼3.0035.84 ▼0.47
Add New Post /wp-admin/post-new.php1,519 ▲517.66 ▼0.00648.11 ▼17.1354.36 ▼4.27
Media Library /wp-admin/upload.php1,397 ▲124.23 ▲0.0492.12 ▼7.3242.51 ▼1.18
Popular Posts /wp-admin/options-general.php?page=wx-popular-posts9902.0329.0338.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • widget_wx_create_pp_widget
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wx-popular-posts
    • > Notice in wp-content/plugins/wp-xperts-popular-posts/inc/wx-pp-settings.php+177
    Trying to access array offset on value of type bool

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: popular posts widget, popular posts, wp most popular posts widget, most viewed posts widget, most viewed posts

wp-xperts-popular-posts/popular-posts.php 77% from 13 tests

The principal PHP file in "WP-xPerts Popular Posts" v. 1.2 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 150 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-xperts-popular-posts.php" instead of "popular-posts.php")

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 detected571 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP57431500
CSS212071
JavaScript1030

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity8.33
▷ Minimum class complexity6.00
▷ Maximum class complexity12.00
Average method complexity1.85
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin