87% placefull-private-label

Code Review | PlaceFull Private Label

WordPress plugin PlaceFull Private Label scored 87% from 54 tests.

About plugin

  • Plugin page: placefull-private...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.6
  • WordPress version: 5.9.2
  • First release: Jan 14, 2014
  • Latest release: Jan 15, 2014
  • Number of updates: 8
  • Update frequency: every 182.0 days
  • Top authors: ryanvanderpol (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 819 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by PlaceFull Private Label
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0156.55 ▲3.54
Dashboard /wp-admin3.43 ▲0.0232.14 ▼2.34
Posts /wp-admin/edit.php3.65 ▲0.0236.93 ▼0.86
Add New Post /wp-admin/post-new.php6.89 ▼0.0892.07 ▼1,166.02
Media Library /wp-admin/upload.php3.31 ▲0.0123.18 ▼1.74
PlaceFull /wp-admin/options-general.php?page=placefull-settings-admin3.2522.26

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

PlaceFull Private Label: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲2615.86 ▼0.086.19 ▲0.152.30 ▲0.14
Dashboard /wp-admin2,893 ▲326.13 ▼0.19116.51 ▼16.67151.96 ▼12.58
Posts /wp-admin/edit.php2,696 ▲53.24 ▲0.0063.82 ▼0.90141.63 ▼1.55
Add New Post /wp-admin/post-new.php1,671 ▼4818.34 ▼4.30409.43 ▼25.25156.17 ▲6.71
Media Library /wp-admin/upload.php1,703 ▲55.54 ▲0.02156.53 ▲18.44188.84 ▲6.28
PlaceFull /wp-admin/options-general.php?page=placefull-settings-admin1,0262.3756.20122.21

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=placefull-settings-admin
    • > User deprecated in wp-includes/functions.php+5326
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=placefull-settings-admin
    • > User deprecated in wp-includes/functions.php+5326
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/placefull-private-label/placefull-privatelabel.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (This screenshot shows detailed information about the listing to the customer including available timeslots, pricing, photos and a map. All of these things are customizable via the PlaceFull listing editor at https://my.placefull.com), #2 (This screenshot shows a list of all actively published listings from your PlaceFull account including basic information about each listing. To book a listing, the customer can click on a listing and see availabilities and pricing information.)
The official readme.txt might help

placefull-private-label/placefull-privatelabel.php 85% from 13 tests

"PlaceFull Private Label" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 376 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("placefull-private-label.php" instead of "placefull-privatelabel.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
No dangerous file extensions were detected121 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12353121

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.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 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 1.32MB with 0.99MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png755.57KB182.54KB▼ 75.84%
screenshot-1.png596.44KB157.27KB▼ 73.63%