83% pressplay-lite

Code Review | PressPlay Lite

WordPress plugin PressPlay Lite scored83%from 54 tests.

About plugin

  • Plugin page: pressplay-lite
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Oct 2, 2013
  • Latest release: Jun 11, 2014
  • Number of updates: 6
  • Update frequency: every 54.7 days
  • Top authors: dougwalker619 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40+ active /2,194 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.33ms] Passed 4 tests

An overview of server-side resources used by PressPlay Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.53 ▲2.90
Dashboard /wp-admin3.32 ▲0.0147.26 ▲3.83
Posts /wp-admin/edit.php3.37 ▲0.0146.44 ▲1.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.26 ▼13.35
Media Library /wp-admin/upload.php3.24 ▲0.0134.76 ▼0.26

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for PressPlay Lite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲18013.80 ▼0.5818.96 ▲17.1641.67 ▲2.26
Dashboard /wp-admin2,206 ▲205.88 ▲0.89112.56 ▲3.1744.07 ▲0.80
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0533.65 ▼3.4336.08 ▲2.73
Add New Post /wp-admin/post-new.php1,533 ▲1923.21 ▲5.65665.51 ▲33.8458.70 ▼1.40
Media Library /wp-admin/upload.php1,391 ▲34.23 ▼0.0295.52 ▼1.0446.41 ▲5.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pressplay-lite/pressplay.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: You are using too many tags: 19 tag instead of maximum 10
  • Screenshots: Please add an image for screenshot #1 (Front-end default design.)
You can look at the official readme.txt

pressplay-lite/pressplay.php 92% from 13 tests

The entry point to "PressPlay Lite" version 1.2.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("pressplay-lite.php" instead of "pressplay.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin386 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript43541305
CSS12042
PHP1122539

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin