10% tessa-authorship

Code Review | Tessa Authorship

WordPress plugin Tessa Authorship scored10%from 54 tests.

About plugin

  • Plugin page: tessa-authorship
  • Plugin version: 0.7.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-4.0
  • WordPress version: 6.3.1
  • First release: Nov 29, 2013
  • Latest release: Nov 1, 2014
  • Number of updates: 36
  • Update frequency: every 9.4 days
  • Top authors: ulih (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,626 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/tessa-authorship/classes/tessa-authorship-widget.php+408
    Function create_function() is deprecated

Server metrics [RAM: ▼1.28MB] [CPU: ▼48.85ms] Passed 4 tests

This is a short check of server-side resources used by Tessa Authorship
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.75 ▼0.7511.03 ▼35.05
Dashboard /wp-admin2.77 ▼0.5712.43 ▼43.57
Posts /wp-admin/edit.php2.77 ▼0.639.22 ▼39.29
Add New Post /wp-admin/post-new.php2.77 ▼3.1612.90 ▼77.48
Media Library /wp-admin/upload.php2.77 ▼0.509.92 ▼30.11
Authorship Settings /wp-admin/edit.php?post_type=authorship&page=tessa-authorship2.7711.29
Author Tags /wp-admin/edit-tags.php?taxonomy=authorship-tags&post_type=authorship2.779.87
Add New /wp-admin/post-new.php?post_type=authorship2.7711.46
Author Categories /wp-admin/edit-tags.php?taxonomy=authorship-category&post_type=authorship2.779.75
All Authorship /wp-admin/edit.php?post_type=authorship2.7710.41

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
tasrpas_settings
widget_recent-comments
widget_recent-posts
tessa-authorship-version
can_compress_scripts
db_upgraded
widget_tessa_authorship

Browser metrics Passed 4 tests

An overview of browser requirements for Tessa Authorship
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.26 ▼0.101.84 ▼0.2743.75 ▲0.25
Dashboard /wp-admin2,232 ▲525.61 ▲0.0292.21 ▼3.1941.27 ▲3.82
Posts /wp-admin/edit.php2,137 ▲372.02 ▼0.0136.42 ▲0.2533.12 ▼1.45
Add New Post /wp-admin/post-new.php1,559 ▲3323.17 ▲0.26669.86 ▼30.0760.04 ▲8.22
Media Library /wp-admin/upload.php1,434 ▲374.26 ▲0.09108.83 ▼1.2148.18 ▼0.99
Authorship Settings /wp-admin/edit.php?post_type=authorship&page=tessa-authorship1,1712.0027.1843.13
Author Tags /wp-admin/edit-tags.php?taxonomy=authorship-tags&post_type=authorship1,2802.1227.3443.05
Add New /wp-admin/post-new.php?post_type=authorship3,2218.03203.4773.87
Author Categories /wp-admin/edit-tags.php?taxonomy=authorship-category&post_type=authorship1,3112.1226.5127.60
All Authorship /wp-admin/edit.php?post_type=authorship1,1541.9730.8833.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/tessa-authorship/classes/tessa-authorship-widget.php+408
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • tessa-authorship-version
    • widget_theysaidso_widget
    • widget_tessa_authorship
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

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
Smoke test failed, please fix the following
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=authorship
    • > POST request to /wp-admin/admin-ajax.php
    • > Deprecated in wp-content/plugins/tessa-authorship/classes/tessa-authorship-widget.php+408
    Function create_function() is deprecated
  • 32 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=authorship
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/tessa-authorship/classes/tessa-authorship.php+1097
    Illegal string offset 'post_types'
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=authorship
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/tessa-authorship/classes/tessa-authorship.php+1095
    Array to string conversion
  • 25 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=authorship
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/tessa-authorship/classes/tessa-authorship.php+1097
    in_array() expects parameter 2 to be array, string given
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=authorship
    • > POST request to /wp-admin/admin-ajax.php
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in Tessa_Authorship_Widget is deprecated since version 4.3.0! Use __construct() instead.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=authorship&page=tessa-authorship
    • > Warning in wp-content/plugins/tessa-authorship/classes/tessa-authorship-tasrpas.php+658
    Illegal string offset 'activate_mpt'
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=authorship&page=tessa-authorship
    • > Warning in wp-content/plugins/tessa-authorship/classes/tessa-authorship-tasrpas.php+662
    Illegal string offset 'content_filter'
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=authorship&page=tessa-authorship
    • > Warning in wp-content/plugins/tessa-authorship/classes/tessa-authorship-tasrpas.php+739
    Illegal string offset 'open_link_blank'
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=authorship&page=tessa-authorship
    • > Warning in wp-content/plugins/tessa-authorship/classes/tessa-authorship-tasrpas.php+744
    Illegal string offset 'pub_email_link'
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=authorship&page=tessa-authorship
    • > Warning in wp-content/plugins/tessa-authorship/classes/tessa-authorship-tasrpas.php+746
    Illegal string offset 'show_email_form'
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=authorship&page=tessa-authorship
    • > Warning in wp-content/plugins/tessa-authorship/classes/tessa-authorship-tasrpas.php+751
    Illegal string offset 'use_social_icons'
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=authorship&page=tessa-authorship
    • > Warning in wp-content/plugins/tessa-authorship/classes/tessa-authorship-tasrpas.php+753
    Illegal string offset 'use_social_font'
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=authorship&page=tessa-authorship
    • > Warning in wp-content/plugins/tessa-authorship/classes/tessa-authorship-tasrpas.php+757
    Illegal string offset 'add_social_info'
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=authorship
    • > Notice in wp-content/plugins/tessa-authorship/classes/tessa-authorship-tasrpas.php+152
    Uninitialized string offset: 0

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/post-new.php?post_type=authorship
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/tessa-authorship/assets/js/saprsat.js?ver=0.7.7:166:29)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/post-new.php?post_type=authorship
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Too many tags (54 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

tessa-authorship/tessa-authorship.php Passed 13 tests

The entry point to "Tessa Authorship" version 0.7.7 is a PHP file that has certain tags in its header comment area
131 characters long description:
Add wordpress independent authorship information on posts, pages, create lists of authors, reflect related content on author's page

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
No dangerous file extensions were detected5,167 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP84891,1803,022
PO File56482,5731,361
JavaScript58736516
CSS3978243
XML10025

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity66.57
▷ Minimum class complexity1.00
▷ Maximum class complexity191.00
Average method complexity6.88
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods78
▷ Static methods911.54%
▷ Public methods6988.46%
▷ Protected methods33.85%
▷ Private methods67.69%
Functions35
▷ Named functions3394.29%
▷ Anonymous functions25.71%
Constants6
▷ Global constants6100.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
26 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/social/wordpress.png3.05KB1.73KB▼ 43.21%
assets/images/social/aim.png2.21KB1.65KB▼ 25.06%
assets/images/social/skype.png2.58KB1.70KB▼ 34.08%
assets/images/social/vimeo.png2.40KB1.71KB▼ 28.84%
assets/images/authorship-icon.png3.08KB2.08KB▼ 32.55%