74% oferty-pracy-z-pracapl

Code Review | Oferty pracy z Praca.pl

WordPress plugin Oferty pracy z Praca.pl scored74%from 54 tests.

About plugin

  • Plugin page: oferty-pracy-z-pr...
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Dec 18, 2013
  • Latest release: Sep 2, 2018
  • Number of updates: 25
  • Update frequency: every 68.9 days
  • Top authors: Tomasz Tomczyk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,273 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼1.75MB] [CPU: ▼53.02ms] Passed 4 tests

Server-side resources used by Oferty pracy z Praca.pl
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.21 ▼1.266.77 ▼34.44
Dashboard /wp-admin2.27 ▼1.077.84 ▼52.98
Posts /wp-admin/edit.php2.28 ▼1.089.42 ▼35.23
Add New Post /wp-admin/post-new.php2.27 ▼3.618.75 ▼89.41
Media Library /wp-admin/upload.php2.28 ▼0.9510.83 ▼21.63

Server storage [IO: ▲0.08MB] [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: 19 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Oferty pracy z Praca.pl
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.25 ▼1.124.82 ▲3.0244.18 ▲3.90
Dashboard /wp-admin2,224 ▲354.85 ▼0.13108.70 ▼2.3740.22 ▼1.38
Posts /wp-admin/edit.php2,107 ▲182.05 ▲0.0140.34 ▼2.2935.99 ▼0.12
Add New Post /wp-admin/post-new.php1,543 ▲2923.18 ▲5.39630.16 ▼16.6564.28 ▲10.86
Media Library /wp-admin/upload.php1,409 ▲184.23 ▲0.0195.55 ▼10.6041.56 ▼5.56

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
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/oferty-pracy-z-pracapl/lib/Http/HttpCurl.php+111
    Array and string offset access syntax with curly braces is deprecated
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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 | 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 items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/oferty-pracy-z-pracapl/prPraca.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/oferty-pracy-z-pracapl/i18n/static.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% 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: jobs, oferty pracy, job, praca

oferty-pracy-z-pracapl/prPraca.php 85% from 13 tests

This is the main PHP file of "Oferty pracy z Praca.pl" version 1.0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("oferty-pracy-z-pracapl.php" instead of "prPraca.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 144 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
Everything looks great! No dangerous files found in this plugin1,421 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP1212535758
PO File2306326641
CSS15222

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity11.67
▷ Minimum class complexity1.00
▷ Maximum class complexity84.00
Average method complexity5.80
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces2
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods312.00%
▷ Public methods1976.00%
▷ Protected methods00.00%
▷ Private methods624.00%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/img/icons.png12.68KB8.00KB▼ 36.94%