83% pepperjam-pixel

Code Review | Pepperjam Pixel

WordPress plugin Pepperjam Pixel scored83%from 54 tests.

About plugin

  • Plugin page: pepperjam-pixel
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8.3
  • WordPress version: 6.3.1
  • First release: Oct 10, 2016
  • Latest release: Jan 24, 2022
  • Number of updates: 18
  • Update frequency: every 107.5 days
  • Top authors: pepperjam2016 (72.22%)PigBoT (22.22%)dbright (16.67%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,944 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
The plugin installed gracefully, with no errors

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

Server-side resources used by Pepperjam Pixel
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.19 ▲1.75
Dashboard /wp-admin3.33 ▼0.0247.64 ▼14.29
Posts /wp-admin/edit.php3.38 ▲0.0249.25 ▼11.77
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.68 ▼3.81
Media Library /wp-admin/upload.php3.25 ▲0.0239.63 ▲3.42

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Pepperjam Pixel
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲3414.24 ▼0.332.03 ▲0.2243.21 ▲4.03
Dashboard /wp-admin2,201 ▲275.53 ▼0.0889.63 ▼7.2438.47 ▼2.15
Posts /wp-admin/edit.php2,106 ▲31.95 ▼0.0439.38 ▲2.2635.64 ▲0.74
Add New Post /wp-admin/post-new.php1,542 ▲1423.07 ▲0.14618.45 ▼71.6049.52 ▼7.59
Media Library /wp-admin/upload.php1,397 ▼34.28 ▲0.09105.10 ▼3.8549.97 ▲2.37

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/pepperjam-pixel/includes/data-pj-form-fields.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: woocommerce, woo, pepperjam, commerce, pixel

pepperjam-pixel/pepperjam.php 69% from 13 tests

Analyzing the main PHP file in "Pepperjam Pixel" version 1.1.1
You should first fix the following items:
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages/")
  • Main file name: The principal plugin file should be the same as the plugin slug ("pepperjam-pixel.php" instead of "pepperjam.php")
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages/")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected595 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6204387595

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity16.80
▷ Minimum class complexity3.00
▷ Maximum class complexity39.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods51
▷ Static methods713.73%
▷ Public methods3976.47%
▷ Protected methods00.00%
▷ Private methods1223.53%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants8
▷ Global constants787.50%
▷ Class constants112.50%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin