10% plista

Code Review | plista

WordPress plugin plista scored10%from 54 tests.

About plugin

  • Plugin page: plista
  • Plugin version: 1.5.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.7.1
  • WordPress version: 6.3.1
  • First release: Sep 22, 2011
  • Latest release: Feb 22, 2019
  • Number of updates: 69
  • Update frequency: every 39.8 days
  • Top authors: plista (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /24,064 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/plista/plista_integration.php+370
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

Server metrics [RAM: ▼0.95MB] [CPU: ▼32.44ms] Passed 4 tests

This is a short check of server-side resources used by plista
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.76 ▲3.50
Dashboard /wp-admin2.99 ▼0.3123.18 ▼26.57
Posts /wp-admin/edit.php2.99 ▼0.3625.80 ▼23.59
Add New Post /wp-admin/post-new.php2.99 ▼2.8925.05 ▼66.52
Media Library /wp-admin/upload.php2.99 ▼0.2323.33 ▼13.09
plista /wp-admin/options-general.php?page=plista3.0023.13

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

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

Browser metrics Passed 4 tests

A check of browser resources used by plista
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7613.25 ▼1.041.88 ▲0.0239.34 ▼1.27
Dashboard /wp-admin2,214 ▲255.90 ▲0.90104.98 ▼5.5541.13 ▲3.92
Posts /wp-admin/edit.php2,097 ▲52.03 ▲0.0240.58 ▼0.7633.88 ▼5.73
Add New Post /wp-admin/post-new.php1,521 ▲217.65 ▼5.81630.33 ▼1.3449.58 ▼1.97
Media Library /wp-admin/upload.php1,396 ▲54.26 ▲0.0293.28 ▼6.2840.90 ▼3.44
plista /wp-admin/options-general.php?page=plista1,4142.2030.6148.61

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
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=plista
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/plista/plista_integration.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/plista/plista_integration_admin.php:237

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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: These screenshots require images: #1 (Plista presentation), #2 (Recommendation widget), #3 (plista Adminpage)
Please take inspiration from this readme.txt

plista/plista_integration.php 92% from 13 tests

The main PHP file in "plista" ver. 1.5.10 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("plista.php" instead of "plista_integration.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,308 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP217397801
PO File3160309388
CSS118181
JavaScript18138

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity78.00
▷ Minimum class complexity78.00
▷ Maximum class complexity78.00
Average method complexity9.56
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods9100.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.55MB with 0.17MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png182.28KB195.91KB0.00%
screenshot-3.png210.26KB61.50KB▼ 70.75%
image/logo.png2.40KB1.22KB▼ 49.17%
screenshot-1.png170.52KB180.58KB0.00%