84% tailor-portfolio

Code Review | Tailor Page Builder: Portfolio Extension

WordPress plugin Tailor Page Builder: Portfolio Extension scored84%from 54 tests.

About plugin

  • Plugin page: tailor-portfolio
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.7
  • WordPress version: 6.3.1
  • First release: Jun 11, 2016
  • Latest release: Jul 19, 2017
  • Number of updates: 17
  • Update frequency: every 25.4 days
  • Top authors: andrew.worsfold (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /5,219 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.17ms] Passed 4 tests

An overview of server-side resources used by Tailor Page Builder: Portfolio Extension
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.25 ▲1.41
Dashboard /wp-admin3.34 ▲0.0344.62 ▼2.02
Posts /wp-admin/edit.php3.45 ▲0.0942.03 ▼6.11
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.34 ▼17.95
Media Library /wp-admin/upload.php3.26 ▲0.0339.62 ▲2.29

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Tailor Page Builder: Portfolio Extension
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.77 ▲0.401.73 ▲0.0841.15 ▼3.70
Dashboard /wp-admin2,200 ▲195.56 ▼0.1682.93 ▼16.3337.16 ▼5.40
Posts /wp-admin/edit.php2,114 ▲142.04 ▲0.0337.67 ▲0.5730.79 ▼1.38
Add New Post /wp-admin/post-new.php1,532 ▲423.31 ▲0.19658.71 ▲45.9661.11 ▲3.59
Media Library /wp-admin/upload.php1,411 ▲114.21 ▲0.02112.50 ▲7.8245.95 ▲0.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tailor-portfolio/includes/shortcodes/shortcode-projects.php:150

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

tailor-portfolio/tailor-portfolio.php Passed 13 tests

The entry point to "Tailor Page Builder: Portfolio Extension" version 1.2.2 is a PHP file that has certain tags in its header comment area
50 characters long description:
Adds portfolio functionality to the Tailor plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,311 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP10160438835
Sass136635277
JavaScript6260102
CSS420468
JSON10021
Markdown1508

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity10.67
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods33
▷ Static methods1442.42%
▷ Public methods3193.94%
▷ Protected methods26.06%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin