84% tsw-custom-profile

Code Review | TSW Custom Profile

WordPress plugin TSW Custom Profile scored84%from 54 tests.

About plugin

  • Plugin page: tsw-custom-profile
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.1.1
  • WordPress version: 6.3.1
  • First release: Feb 4, 2015
  • Latest release: May 5, 2019
  • Number of updates: 61
  • Update frequency: every 25.7 days
  • Top authors: tradesouthwest@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /3,213 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by TSW Custom Profile
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.71 ▲1.02
Dashboard /wp-admin3.34 ▲0.0345.18 ▼3.54
Posts /wp-admin/edit.php3.39 ▲0.0345.81 ▼0.52
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.49 ▼11.52
Media Library /wp-admin/upload.php3.26 ▲0.0333.85 ▼3.61
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=custom_profile3.2532.52
Add New - limit 12 /wp-admin/post-new.php?post_type=custom_profile3.3848.63
Custom Profiles /wp-admin/edit.php?post_type=custom_profile3.3036.66

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for TSW Custom Profile
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.26 ▼1.481.74 ▲0.0443.35 ▼2.11
Dashboard /wp-admin2,236 ▲485.82 ▲0.7397.17 ▼6.3782.95 ▲42.90
Posts /wp-admin/edit.php2,119 ▲302.01 ▲0.0434.86 ▼2.6335.62 ▲2.13
Add New Post /wp-admin/post-new.php1,540 ▲723.68 ▲0.52690.02 ▲15.5052.41 ▼6.91
Media Library /wp-admin/upload.php1,415 ▲334.21 ▼0.0098.48 ▲1.1070.13 ▲28.21
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=custom_profile1,3402.1429.2937.22
Add New - limit 12 /wp-admin/post-new.php?post_type=custom_profile2,2437.62188.03111.88
Custom Profiles /wp-admin/edit.php?post_type=custom_profile1,0971.9533.4329.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tsw-custom-profile/tsw-profile-feed.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/tsw-custom-profile/tsw-custom-profile.php:56

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)
There were no browser issues found

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: Please take inspiration from this readme.txt

tsw-custom-profile/tsw-custom-profile.php Passed 13 tests

The main file in "TSW Custom Profile" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
84 characters long description:
Custom post type plugin for posting banner like articles to top of TSW theme Jacqui.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin62 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2234162

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon_pin24.png0.74KB0.67KB▼ 10.50%