63% pablo-career

Code Review | Pablo Career

WordPress plugin Pablo Career scored 63% from 54 tests.

About plugin

  • Plugin page: pablo-career
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.4.2
  • WordPress version: 5.8.1
  • First release: Mar 1, 2016
  • Latest release: Mar 19, 2016
  • Number of updates: 15
  • Update frequency: every 1.2 days
  • Top authors: pbl0m (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 780 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.55MB] [CPU: ▼137.35ms] Passed 4 tests

A check of server-side resources used by Pablo Career
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.37 ▲0.5338.87 ▲5.13
Dashboard /wp-admin3.62 ▲0.5645.27 ▲3.03
Posts /wp-admin/edit.php3.73 ▲0.6243.09 ▼0.56
Add New Post /wp-admin/post-new.php5.97 ▲0.5492.81 ▼556.71
Media Library /wp-admin/upload.php3.56 ▲0.5636.98 ▲4.83
Add Job Offer /wp-admin/admin.php?page=job_form5.6241.96
Job Offers /wp-admin/admin.php?page=jobs5.6544.58
Job Offer Settings /wp-admin/options-general.php?page=job-offer-settings5.6038.88

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 290 new files
Database: 1 new table, 1 new option
New tables
wp_pablo_career_jobs
New WordPress options
pablo_db_version

Browser metrics Passed 4 tests

Checking browser requirements for Pablo Career
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,851 ▲25516.38 ▲0.4114.98 ▲3.2449.53 ▲1.24
Dashboard /wp-admin3,007 ▲735.92 ▼0.03132.88 ▼5.69117.45 ▼0.14
Posts /wp-admin/edit.php2,773 ▲372.72 ▲0.0061.12 ▼3.9796.03 ▲9.70
Add New Post /wp-admin/post-new.php1,637 ▼3521.96 ▲3.07271.24 ▼107.50104.14 ▼6.26
Media Library /wp-admin/upload.php1,844 ▲345.13 ▲0.09145.38 ▼0.11111.86 ▼9.99
Add Job Offer /wp-admin/admin.php?page=job_form2,97410.95225.60146.89
Job Offers /wp-admin/admin.php?page=jobs1,3162.0955.3764.49
Job Offer Settings /wp-admin/options-general.php?page=job-offer-settings1,1142.0552.1370.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_pablo_career_jobs
  • This plugin does not fully uninstall, leaving 1 option in the database
    • pablo_db_version

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=job-offer-settings
    • > Deprecated in wp-content/plugins/pablo-career/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compilebase.php+78
    The each() function is deprecated. This message will be suppressed on further calls

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/pablo-career/vendor/smarty/smarty/demo/index.php
  • 120× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Internal_Method_CompileAllTemplates' not found in wp-content/plugins/pablo-career/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_compileallconfig.php:12
    • > PHP Fatal error
      Uncaught Error: Call to a member function decodeProperties() on null in wp-content/plugins/pablo-career/tmp/templates_c/04f70a6b40e3526d06b03b0fd80abb4d1c56a996_0.file.admin-joblist.tpl.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Internal_ParseTree' not found in wp-content/plugins/pablo-career/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_template.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Internal_CompileBase' not found in wp-content/plugins/pablo-career/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_registered_function.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Internal_CompileBase' not found in wp-content/plugins/pablo-career/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_continue.php:17
    • > PHP Notice
      Trying to get property '_validateCompiled' of non-object in wp-content/plugins/pablo-career/tmp/templates_c/13a6f5ac3d5d2006157ddc969df1a7ce7d67281f_0.file.admin-job-metabox.tpl.php on line 5
    • > PHP Notice
      Trying to get property 'ext' of non-object in wp-content/plugins/pablo-career/tmp/templates_c/b79b5abe4606f3a4c953d61d5db7d4a0fe67816d_0.file.admin-settings.tpl.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Resource_Custom' not found in wp-content/plugins/pablo-career/vendor/smarty/smarty/demo/plugins/resource.mysql.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Internal_Method_SetAutoloadFilters' not found in wp-content/plugins/pablo-career/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getautoloadfilters.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Resource' not found in wp-content/plugins/pablo-career/vendor/smarty/smarty/libs/sysplugins/smarty_resource_custom.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: joboffers, content, personal management, jobs, resource management

pablo-career/pablo-career.php Passed 13 tests

The principal PHP file in "Pablo Career" v. 1.0.3 is loaded by WordPress automatically on each request
43 characters long description:
Manage your joboffers easy within wordpress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin21,152 lines of code in 262 files:
LanguageFilesBlank linesComment linesLines of code
PHP2432,92612,10319,181
yacc22614031,050
Smarty8643546
JSON310122
PO File14449101
CSS2181486
Markdown120045
YAML16018
JavaScript12273

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity14.26
▷ Minimum class complexity1.00
▷ Maximum class complexity163.00
Average method complexity3.85
▷ Minimum method complexity1.00
▷ Maximum method complexity91.00
Code structure
Namespaces14
Interfaces2
Traits0
Classes202
▷ Abstract classes125.94%
▷ Concrete classes19094.06%
▷ Final classes00.00%
Methods971
▷ Static methods394.02%
▷ Public methods88791.35%
▷ Protected methods555.66%
▷ Private methods292.99%
Functions66
▷ Named functions66100.00%
▷ Anonymous functions00.00%
Constants165
▷ Global constants84.85%
▷ Class constants15795.15%
▷ Public constants157100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin