72% listicle

Code Review | listicle

WordPress plugin listicle scored72%from 54 tests.

About plugin

  • Plugin page: listicle
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Jun 25, 2013
  • Latest release: Jun 26, 2013
  • Number of updates: 19
  • Update frequency: every 0.2 days
  • Top authors: alxgrlk (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active /4,346 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
Installer ran successfully

Server metrics [RAM: ▼0.56MB] [CPU: ▼15.59ms] Passed 4 tests

This is a short check of server-side resources used by listicle
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1443.69 ▲4.75
Dashboard /wp-admin3.43 ▲0.0946.84 ▼12.51
Posts /wp-admin/edit.php3.55 ▲0.1954.08 ▲9.94
Add New Post /wp-admin/post-new.php3.28 ▼2.6035.28 ▼52.29
Media Library /wp-admin/upload.php3.36 ▲0.1333.03 ▼2.31
Listicle Tease /wp-admin/tools.php?page=listease3.3032.98

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
listicle_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for listicle
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.22 ▼1.362.02 ▲0.0742.95 ▼1.82
Dashboard /wp-admin2,213 ▲255.87 ▲0.97107.34 ▼4.3041.00 ▼7.34
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0135.42 ▼2.3534.11 ▲0.06
Add New Post /wp-admin/post-new.php1,545 ▲3118.44 ▲0.92625.57 ▼78.3959.19 ▼3.50
Media Library /wp-admin/upload.php1,395 ▲74.18 ▼0.0693.90 ▼21.3143.66 ▼3.49
Listicle Tease /wp-admin/tools.php?page=listease8981.7623.5831.96

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • listicle_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=listease
    • > Notice in wp-content/plugins/listicle/listease.php+171
    Undefined variable: unteasedListtsArr
    • > GET request to /wp-admin/tools.php?page=listease
    • > Warning in wp-content/plugins/listicle/listease.php+392
    Invalid argument supplied for foreach()
    • > GET request to /wp-admin/tools.php?page=listease
    • > Notice in wp-content/plugins/listicle/listease.php+427
    Undefined variable: json

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/listicle/listicle.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/listicle/listease.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/tools.php?page=listease
    • > Network (severe)
    http://listicle.us/js/subject.js - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === listicle === )
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in listicle/assets to your readme.txt
You can look at the official readme.txt

listicle/listicle.php Passed 13 tests

The principal PHP file in "listicle" v. 0.3 is loaded by WordPress automatically on each request
18 characters long description:
listicle generator

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 detected763 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2464150726
JavaScript16020
CSS15717

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.22
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%
Functions28
▷ Named functions28100.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
No PNG files were detected