10% ct-social

Code Review | CT Social

WordPress plugin CT Social scored10%from 54 tests.

About plugin

  • Plugin page: ct-social
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.6
  • WordPress version: 6.3.1
  • First release: Oct 22, 2012
  • Latest release: Jul 28, 2016
  • Number of updates: 4
  • Update frequency: every 344.0 days
  • Top authors: contempoinc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,546 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/ct-social/ct-social.php+334
    Function create_function() is deprecated

Server metrics [RAM: ▼1.97MB] [CPU: ▼52.35ms] Passed 4 tests

Analyzing server-side resources used by CT Social
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.54 ▼32.04
Dashboard /wp-admin2.05 ▼1.305.35 ▼52.52
Posts /wp-admin/edit.php2.05 ▼1.315.33 ▼41.65
Add New Post /wp-admin/post-new.php2.05 ▼3.846.33 ▼83.19
Media Library /wp-admin/upload.php2.05 ▼1.185.20 ▼28.57

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

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

Browser metrics Passed 4 tests

A check of browser resources used by CT Social
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲13613.37 ▼0.978.46 ▲6.7742.99 ▲3.89
Dashboard /wp-admin2,195 ▲205.64 ▼0.0398.12 ▼3.1642.20 ▲2.95
Posts /wp-admin/edit.php2,103 ▲32.02 ▼0.0133.97 ▼3.2436.88 ▲3.05
Add New Post /wp-admin/post-new.php1,528 ▲223.23 ▲0.19668.53 ▼49.9857.20 ▼15.20
Media Library /wp-admin/upload.php1,403 ▲64.20 ▲0.01104.25 ▼0.0944.85 ▼1.45

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/ct-social/ct-social.php+334
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_ct_social
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ct-social/ct-social.php:18

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

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

ct-social/ct-social.php Passed 13 tests

The entry point to "CT Social" version 1.0.0 is a PHP file that has certain tags in its header comment area
30 characters long description:
A simple social profile widget

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin348 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP11717302
PO File110934
CSS14126
JavaScript1186

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity63.00
▷ Minimum class complexity63.00
▷ Maximum class complexity63.00
Average method complexity16.50
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
81 PNG files occupy 0.13MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/24px/digg.png2.56KB1.45KB▼ 43.17%
assets/images/16px/instagram.png1.53KB0.69KB▼ 54.85%
assets/images/16px/skype.png0.78KB0.80KB0.00%
assets/images/24px/pinterest.png1.96KB1.16KB▼ 41.07%
assets/images/16px/flickr.png0.59KB0.50KB▼ 14.00%