83% pilopress

Code Review | Pilo'Press

WordPress plugin Pilo'Press scored83%from 54 tests.

About plugin

  • Plugin page: pilopress
  • Plugin version: 0.4.3.2
  • PHP compatiblity: 5.6 or higher+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9 or higher-6.2
  • WordPress version: 6.3.1
  • First release: May 25, 2020
  • Latest release: Apr 5, 2023
  • Number of updates: 71
  • Update frequency: every 14.8 days
  • Top authors: pilotin (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /3,031 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.45ms] Passed 4 tests

Server-side resources used by Pilo'Press
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.01 ▲0.34
Dashboard /wp-admin3.35 ▲0.0145.63 ▼11.67
Posts /wp-admin/edit.php3.47 ▲0.1147.91 ▲1.92
Add New Post /wp-admin/post-new.php5.93 ▲0.0591.90 ▼11.03
Media Library /wp-admin/upload.php3.28 ▲0.0533.00 ▲0.56

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 68 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pilo'Press
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.171.70 ▲0.0343.01 ▲2.76
Dashboard /wp-admin2,206 ▲154.86 ▼0.26108.84 ▲2.6942.13 ▼0.80
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0540.30 ▲3.3735.97 ▲2.59
Add New Post /wp-admin/post-new.php1,547 ▲3318.38 ▲0.70598.52 ▼93.0069.37 ▲16.71
Media Library /wp-admin/upload.php1,388 ▲34.17 ▼0.0693.04 ▼6.3040.91 ▼6.45

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 36× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_new_instance() in wp-content/plugins/pilopress/includes/classes/pattern/class-pattern-message.php:139
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_new_instance() in wp-content/plugins/pilopress/includes/classes/main/class-layouts.php:375
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_new_instance() in wp-content/plugins/pilopress/includes/classes/admin/options-pages/class-admin-options-page.php:441
    • > PHP Notice
      Undefined variable: page_title in wp-content/plugins/pilopress/includes/views/styles-admin-page.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_add_local_field_group() in wp-content/plugins/pilopress/includes/classes/admin/options-pages/styles-option-configuration.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_new_instance() in wp-content/plugins/pilopress/includes/classes/main/class-flexible.php:673
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/pilopress/includes/layouts/template-target-content/template-target-content.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_new_instance() in wp-content/plugins/pilopress/includes/classes/pattern/class-pattern.php:181
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_new_instance() in wp-content/plugins/pilopress/includes/views/pip-dashboard.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_add_local_field_group() in wp-content/plugins/pilopress/includes/classes/admin/options-pages/styles-option-tailwind.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (Flexible Content Layout UI)
The official readme.txt is a good inspiration

pilopress/pilopress.php 85% from 13 tests

The primary PHP file in "Pilo'Press" version 0.4.3.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Requires PHP: Please use periods and digits for the required version (ex. "7.0" instead of "5.6 or higher")
  • Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "4.9 or higher")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected15,431 lines of code in 64 files:
LanguageFilesBlank linesComment linesLines of code
PHP532,7733,82612,765
JavaScript52313251,256
PO File14476881,011
CSS58946399

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity24.73
▷ Minimum class complexity2.00
▷ Maximum class complexity82.00
Average method complexity3.83
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes40
▷ Abstract classes00.00%
▷ Concrete classes40100.00%
▷ Final classes00.00%
Methods332
▷ Static methods103.01%
▷ Public methods31996.08%
▷ Protected methods00.00%
▷ Private methods133.92%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants15100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/layouts/template-target-content/template-target-content.png64.91KB25.93KB▼ 60.05%