68% fs-pax-pirep

Code Review | FS-Pax Pirep

WordPress plugin FS-Pax Pirep scored68%from 54 tests.

About plugin

  • Plugin page: fs-pax-pirep
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 16, 2011
  • Latest release: Sep 28, 2017
  • Number of updates: 34
  • Update frequency: every 64.2 days
  • Top authors: yorokobi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,199 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.02MB] [CPU: ▼37.68ms] Passed 4 tests

This is a short check of server-side resources used by FS-Pax Pirep
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.78 ▼0.6814.89 ▼22.49
Dashboard /wp-admin3.04 ▼0.2627.22 ▼30.65
Posts /wp-admin/edit.php3.05 ▼0.3122.61 ▼29.45
Add New Post /wp-admin/post-new.php3.04 ▼2.8428.34 ▼68.12
Media Library /wp-admin/upload.php3.05 ▼0.1822.48 ▼14.74

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

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

Browser metrics Passed 4 tests

FS-Pax Pirep: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11513.40 ▼0.898.23 ▲6.4345.17 ▼0.03
Dashboard /wp-admin2,199 ▲195.57 ▼0.1582.78 ▼13.3437.64 ▼1.89
Posts /wp-admin/edit.php2,107 ▲41.94 ▼0.0539.47 ▼1.2636.71 ▲1.12
Add New Post /wp-admin/post-new.php1,529 ▼823.72 ▲5.27623.19 ▼3.8457.95 ▼7.96
Media Library /wp-admin/upload.php1,407 ▲44.20 ▲0.0096.20 ▼9.0345.89 ▲2.67
FP FSpax Pirep /wp-admin/fs-pax-pirep.php260.420.1115.60

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/fs-pax-pirep/fs-pax-pirep.php:359

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/fs-pax-pirep.php
    • > Network (severe)
    wp-admin/fs-pax-pirep.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Styled Output Screen)
You can look at the official readme.txt

fs-pax-pirep/fs-pax-pirep.php Passed 13 tests

The entry point to "FS-Pax Pirep" version 2.1 is a PHP file that has certain tags in its header comment area
52 characters long description:
Adds scripted PIREP display as a plugin to WordPress

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
Success! There were no dangerous files found in this plugin492 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1854316
JavaScript1017136
CSS16240

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.25MB with 0.22MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png257.58KB30.63KB▼ 88.11%