94% pinba-script-name-fix

Code Review | Pinba Script Name Fix

WordPress plugin Pinba Script Name Fix scored 94% from 54 tests.

About plugin

  • Plugin page: pinba-script-name...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 5.9.2
  • First release: Feb 26, 2016
  • Latest release: Feb 26, 2016
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: f.macdonald (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 517 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼295.73ms] Passed 4 tests

An overview of server-side resources used by Pinba Script Name Fix
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0152.63 ▲1.66
Dashboard /wp-admin3.42 ▲0.0033.02 ▼3.39
Posts /wp-admin/edit.php3.65 ▲0.0036.38 ▼1.29
Add New Post /wp-admin/post-new.php6.89 ▼0.0990.49 ▼1,179.89
Media Library /wp-admin/upload.php3.30 ▲0.0024.34 ▲1.81

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Pinba Script Name Fix
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲916.15 ▲0.205.84 ▼0.482.40 ▲0.23
Dashboard /wp-admin2,889 ▲316.17 ▼0.04119.57 ▼14.26152.58 ▼2.40
Posts /wp-admin/edit.php2,688 ▼63.23 ▲0.0063.46 ▲1.97140.61 ▲5.50
Add New Post /wp-admin/post-new.php1,651 ▼1018.25 ▲1.49444.17 ▲34.23157.10 ▲4.12
Media Library /wp-admin/upload.php1,695 ▼35.54 ▲0.02138.28 ▼5.41189.09 ▲3.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at 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_action() in wp-content/plugins/pinba-script-name-fix/pinba-script-name-fix.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% 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
4 plugin tags: pinba, intaro, pinboard, script_name

pinba-script-name-fix/pinba-script-name-fix.php 92% from 13 tests

The entry point to "Pinba Script Name Fix" version 0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 220 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14127

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin