84% icyclub

Code Review | Icyclub

WordPress plugin Icyclub scored84%from 54 tests.

About plugin

  • Plugin page: icyclub
  • Plugin version: 2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 27, 2018
  • Latest release: Aug 10, 2023
  • Number of updates: 57
  • Update frequency: every 29.6 days
  • Top authors: themeansar (61.4%)themeicy (40.35%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10,000+ active /349,751 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.13ms] Passed 4 tests

This is a short check of server-side resources used by Icyclub
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.01 ▲0.71
Dashboard /wp-admin3.35 ▲0.0545.32 ▼5.63
Posts /wp-admin/edit.php3.47 ▲0.1144.40 ▼0.01
Add New Post /wp-admin/post-new.php5.93 ▲0.0580.83 ▼3.57
Media Library /wp-admin/upload.php3.28 ▲0.0534.26 ▲1.03

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 172 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Icyclub
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.08 ▼0.311.67 ▼0.1137.43 ▼0.73
Dashboard /wp-admin2,194 ▲175.55 ▼0.1180.29 ▼9.4836.96 ▼3.22
Posts /wp-admin/edit.php2,102 ▲52.01 ▲0.0133.36 ▼2.2033.93 ▼3.40
Add New Post /wp-admin/post-new.php1,537 ▲1118.09 ▼5.23620.90 ▼64.4466.97 ▲12.28
Media Library /wp-admin/upload.php1,402 ▲24.23 ▲0.0696.07 ▼0.7942.55 ▼0.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

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
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 83× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/icyclub/inc/industryup/sections/indusup-callout-section.php:60
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_insert_post() in wp-content/plugins/icyclub/inc/consultco/pages/blog.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/icyclub/inc/consultup/sections/header.php:56
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/icyclub/inc/agencyup/features/customizer-fianancy-header-info.php:140
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_insert_post() in wp-content/plugins/icyclub/inc/industryup/pages/about.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_insert_post() in wp-content/plugins/icyclub/inc/yoga/pages/home.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/icyclub/inc/industryup/features/indusup-slider-section.php:177
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/icyclub/inc/consultco/sections/consultco-news-section.php:92
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_insert_post() in wp-content/plugins/icyclub/inc/yoga/pages/blog.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/icyclub/inc/consultup/features/customizer.php:195

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: testimonial, plugin, portfolio, demo, home page

icyclub/icyclub.php Passed 13 tests

The main file in "Icyclub" v. 2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
49 characters long description:
Icyclub plugin is comptible for Themeansar theme.

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
There were no executable files found in this plugin17,830 lines of code in 79 files:
LanguageFilesBlank linesComment linesLines of code
PHP693,7171,31616,055
CSS6153581,180
JavaScript4281178595

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity2.28
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.74
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes00.00%
Methods43
▷ Static methods00.00%
▷ Public methods3172.09%
▷ Protected methods1227.91%
▷ Private methods00.00%
Functions460
▷ Named functions460100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/agencyup/images/right-alignment.png0.38KB0.31KB▼ 18.81%
inc/agencyup/images/center-alignment.png0.38KB0.31KB▼ 18.81%
inc/class-alpha-color-control/css/transparency-grid.png2.58KB2.80KB0.00%
inc/agencyup/images/left-alignment.png0.38KB0.31KB▼ 19.04%