84% pbp-iul

Code Review | PBP IUL

WordPress plugin PBP IUL scored84%from 54 tests.

About plugin

  • Plugin page: pbp-iul
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2
  • WordPress version: 6.3.1
  • First release: Feb 13, 2015
  • Latest release: Apr 25, 2015
  • Number of updates: 5
  • Update frequency: every 14.2 days
  • Top authors: projoktibangla (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /9,117 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by PBP IUL
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.45 ▼2.97
Dashboard /wp-admin3.32 ▼0.0350.43 ▼19.04
Posts /wp-admin/edit.php3.37 ▲0.0150.22 ▲1.20
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.85 ▼20.52
Media Library /wp-admin/upload.php3.24 ▲0.0138.24 ▲3.02

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for PBP IUL
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9014.47 ▲0.171.76 ▲0.0145.63 ▲0.48
Dashboard /wp-admin2,227 ▲205.82 ▲0.94111.11 ▼6.6285.14 ▲38.27
Posts /wp-admin/edit.php2,121 ▲182.02 ▼0.0439.21 ▲0.9837.30 ▲0.61
Add New Post /wp-admin/post-new.php1,697 ▲14322.47 ▲3.98727.67 ▲98.0760.31 ▲6.20
Media Library /wp-admin/upload.php1,421 ▲214.24 ▼0.0197.98 ▼7.1078.36 ▲31.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pbp-iul/pbp-iul.php:28

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: upload, more and more, up to, limit, increase

pbp-iul/pbp-iul.php Passed 13 tests

The main PHP file in "PBP IUL" ver. 2.1 adds more information about the plugin and also serves as the entry point for this plugin
57 characters long description:
This plugin increase upload size limit up to more & more.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin62 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1224051
INI30011

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon.png3.04KB0.59KB▼ 80.58%