84% atticthemes-social-icons

Code Review | AtticThemes: Social Icons

WordPress plugin AtticThemes: Social Icons scored84%from 54 tests.

About plugin

  • Plugin page: atticthemes-socia...
  • Plugin version: 2.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Aug 9, 2014
  • Latest release: Oct 15, 2016
  • Number of updates: 20
  • Update frequency: every 40.0 days
  • Top authors: AtticThemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,315 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
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.25ms] Passed 4 tests

A check of server-side resources used by AtticThemes: Social Icons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.79 ▼5.02
Dashboard /wp-admin3.39 ▲0.0955.26 ▲8.36
Posts /wp-admin/edit.php3.50 ▲0.1544.57 ▼4.30
Add New Post /wp-admin/post-new.php5.99 ▲0.1186.24 ▼9.99
Media Library /wp-admin/upload.php3.31 ▲0.0934.52 ▼1.68

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for AtticThemes: Social Icons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8613.27 ▼1.101.73 ▼0.1044.70 ▲4.38
Dashboard /wp-admin2,236 ▲485.02 ▼0.06103.90 ▲1.7736.41 ▼6.62
Posts /wp-admin/edit.php2,126 ▲372.27 ▲0.2641.34 ▲4.1731.45 ▼1.95
Add New Post /wp-admin/post-new.php1,540 ▲723.25 ▲0.05647.44 ▼34.2152.43 ▼1.33
Media Library /wp-admin/upload.php1,421 ▲364.32 ▲0.14103.90 ▼2.1441.28 ▼1.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/atticthemes-social-icons/atticthemes-social-icons.php:542

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

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (**Admin Screen:** this is the main and only page in version 2.0 where you create and manage your icon sets.), #2 (**Setting Icon Link:** When an double clicked on an icon the icon link editor will pop up where you can set the link for your icon.), #3 (**Setting Custom Id For An Icon Set:** Double click on the generated shortcode on the right of the icon set to open the shortcode set id editor.)
Please take inspiration from this readme.txt

atticthemes-social-icons/atticthemes-social-icons.php 92% from 13 tests

"AtticThemes: Social Icons" version 2.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 399 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,675 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
SVG1001,013
CSS43667917
PHP17757410
JavaScript29134335

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity53.00
▷ Minimum class complexity53.00
▷ Maximum class complexity53.00
Average method complexity4.47
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods320.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
6 compressed PNG files occupy 0.09MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png30.07KB29.68KB▼ 1.31%
screenshot-3.png30.13KB29.63KB▼ 1.66%
screenshot-2.png29.71KB29.25KB▼ 1.57%
images/trash.png0.23KB0.15KB▼ 35.32%
images/menu-icon.png0.32KB0.23KB▼ 27.16%