84% tsp-facepile

Code Review | LAPDI Facepile

WordPress plugin LAPDI Facepile scored84%from 54 tests.

About plugin

  • Plugin page: tsp-facepile
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-5.6.1
  • WordPress version: 6.3.1
  • First release: Jul 11, 2013
  • Latest release: Feb 8, 2021
  • Number of updates: 41
  • Update frequency: every 67.6 days
  • Top authors: sharrondenice (95.12%)thesoftwarepeople (7.32%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,387 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.99ms] Passed 4 tests

A check of server-side resources used by LAPDI Facepile
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.20 ▲2.43
Dashboard /wp-admin3.31 ▲0.0150.22 ▲5.41
Posts /wp-admin/edit.php3.36 ▲0.0047.77 ▼1.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.83 ▼14.47
Media Library /wp-admin/upload.php3.23 ▲0.0036.19 ▲5.59

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for LAPDI Facepile
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2813.97 ▼0.371.70 ▼0.2039.85 ▼5.51
Dashboard /wp-admin2,195 ▲275.50 ▼0.0786.70 ▼5.6338.59 ▼5.27
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0535.98 ▼1.6133.21 ▼3.27
Add New Post /wp-admin/post-new.php1,540 ▲1218.44 ▼4.61636.17 ▲25.1275.61 ▼2.84
Media Library /wp-admin/upload.php1,397 ▼04.18 ▲0.0298.60 ▼4.6442.16 ▼4.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/tsp-facepile/tsp-facepile.php on line 14
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/tsp-facepile/tsp-facepile.php on line 14
    • > PHP Fatal error
      Uncaught Error: Class 'TSP_Easy_Dev_Options' not found in wp-content/plugins/tsp-facepile/TSP_Easy_Dev.extend.php:12
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/tsp-facepile/tsp-facepile.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/tsp-facepile/TSP_Easy_Dev.config.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: the software people, tiles, members, faces, display...

tsp-facepile/tsp-facepile.php 85% from 13 tests

"LAPDI Facepile" version 1.1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: Please keep the plugin description shorter than 140 characters (currently 200 characters long)

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
Success! There were no dangerous files found in this plugin332 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP375106256
Markdown113030
CSS13126
Smarty10020

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity8.50
▷ Minimum class complexity4.00
▷ Maximum class complexity13.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants12
▷ Global constants12100.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