10% company-presentation

Code Review | People profiles, team- and company pages

WordPress plugin People profiles, team- and company pages scored10%from 54 tests.

About plugin

  • Plugin page: company-presentation
  • Plugin version: 5.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: Apr 16, 2014
  • Latest release: Feb 18, 2019
  • Number of updates: 259
  • Update frequency: every 6.8 days
  • Top authors: Ralph Rezende (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /14,661 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/company-presentation/php/careerpagespluginlibrary.php+340
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

Server metrics [RAM: ▼1.67MB] [CPU: ▼52.79ms] Passed 4 tests

An overview of server-side resources used by People profiles, team- and company pages
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.32 ▼1.145.24 ▼35.66
Dashboard /wp-admin2.34 ▼0.9611.00 ▼39.93
Posts /wp-admin/edit.php2.34 ▼1.017.36 ▼46.56
Add New Post /wp-admin/post-new.php2.34 ▼3.548.04 ▼88.99
Media Library /wp-admin/upload.php2.34 ▼0.898.39 ▼27.96
Shortcode /wp-admin/admin.php?page=prodii-shortcode2.347.15
Settings /wp-admin/admin.php?page=prodii-settings2.348.06
Description /wp-admin/admin.php?page=prodii-description2.346.51

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for People profiles, team- and company pages
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,933 ▲14713.56 ▼0.588.03 ▲5.9346.08 ▲2.49
Dashboard /wp-admin2,215 ▲385.03 ▼0.5790.05 ▲0.8286.67 ▲43.11
Posts /wp-admin/edit.php2,138 ▲562.05 ▲0.0236.42 ▲0.8734.40 ▼1.27
Add New Post /wp-admin/post-new.php1,711 ▲18522.81 ▼0.22668.58 ▼19.4756.72 ▲1.18
Media Library /wp-admin/upload.php1,432 ▲354.54 ▲0.33106.33 ▼3.8069.13 ▲19.79
Shortcode /wp-admin/admin.php?page=prodii-shortcode8271.8925.8828.14
Settings /wp-admin/admin.php?page=prodii-settings8632.0527.1829.54
Description /wp-admin/admin.php?page=prodii-description1,0691.9126.5325.96

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
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/company-presentation/php/careerpagespluginlibrary.php+340
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=prodii-description
    • > Deprecated in wp-content/plugins/company-presentation/php/careerpagespluginlibrary.php+340
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
    • > GET request to /wp-admin/admin.php?page=prodii-shortcode
    • > Notice in wp-content/plugins/company-presentation/php/careerpagespluginlibrary.php+354
    Trying to access array offset on value of type null

SRP 50% 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 fix the following
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/company-presentation/careerpagesplugin.php on line 460
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/company-presentation/careerpagesplugin.php:22
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/company-presentation/careerpagesplugin.php on line 460
    • > PHP Warning
      include_once(ABSPATHWPINC/class-http.php): failed to open stream: No such file or directory in wp-content/plugins/company-presentation/careerpagesplugin.php on line 460
    • > PHP Notice
      Undefined index: local in wp-content/plugins/company-presentation/php/careerpagespluginhandler.php on line 23
    • > PHP Notice
      Undefined index: template in wp-content/plugins/company-presentation/php/careerpagespluginhandler.php on line 25
    • > PHP Notice
      Undefined index: key in wp-content/plugins/company-presentation/php/careerpagespluginhandler.php on line 22
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHWPINC/class-http.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/company-presentation/careerpagesplugin.php on line 460
    • > PHP Notice
      Undefined index: subdir in wp-content/plugins/company-presentation/php/careerpagespluginhandler.php on line 24
    • > PHP Notice
      Undefined index: action in wp-content/plugins/company-presentation/php/careerpagespluginhandler.php on line 8

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 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (26 tag instead of maximum 10)
  • Screenshots: These screenshots lack descriptions #10, #11, #8, #9 in company-presentation/assets to your readme.txt
You can take inspiration from this readme.txt

company-presentation/careerpagesplugin.php 85% from 13 tests

"People profiles, team- and company pages" version 5.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("company-presentation.php" instead of "careerpagesplugin.php")
  • Description: The description should be shorter than 140 characters (currently 336 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,987 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript64133991,967
PHP3156911,019
CSS1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity79.00
▷ Minimum class complexity15.00
▷ Maximum class complexity105.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods52
▷ Static methods3873.08%
▷ Public methods52100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
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
img/menu-logo.png1.13KB0.24KB▼ 78.76%