83% acquaintsoft-sidebar-generator

Code Review | Acquaintsoft sidebar generator

WordPress plugin Acquaintsoft sidebar generator scored83%from 54 tests.

About plugin

  • Plugin page: acquaintsoft-side...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Jan 30, 2017
  • Latest release: Feb 2, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: itcoderr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /897 total downloads


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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.45MB] [CPU: ▲2.54ms] Passed 4 tests

Server-side resources used by Acquaintsoft sidebar generator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4749.26 ▲4.67
Dashboard /wp-admin3.75 ▲0.4551.44 ▼3.13
Posts /wp-admin/edit.php3.80 ▲0.4555.66 ▲6.37
Add New Post /wp-admin/post-new.php6.34 ▲0.4592.70 ▲2.23
Media Library /wp-admin/upload.php3.68 ▲0.4541.58 ▲6.86

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Acquaintsoft sidebar generator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.26 ▼0.111.64 ▼0.0344.33 ▼2.43
Dashboard /wp-admin2,197 ▲295.67 ▼0.0392.75 ▼8.2040.68 ▼5.02
Posts /wp-admin/edit.php2,102 ▲52.01 ▲0.0238.30 ▲2.4835.30 ▲1.45
Add New Post /wp-admin/post-new.php6,209 ▲4,68122.56 ▼0.53877.73 ▲254.4553.72 ▲1.29
Media Library /wp-admin/upload.php1,405 ▲54.19 ▼0.0398.77 ▼7.6343.34 ▼4.00

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • acq_modifiable
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/acquaintsoft-sidebar-generator/view/popup.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'ACS_Class' not found in wp-content/plugins/acquaintsoft-sidebar-generator/view/select_sidebar.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Admin' not found in wp-content/plugins/acquaintsoft-sidebar-generator/include/admin/inc/class-admin-html.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Admin' not found in wp-content/plugins/acquaintsoft-sidebar-generator/include/admin/inc/class-admin-ui.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Admin' not found in wp-content/plugins/acquaintsoft-sidebar-generator/include/admin/inc/class-admin-session.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/acquaintsoft-sidebar-generator/view/delete.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/acquaintsoft-sidebar-generator/view/widgets.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ACS_Class' not found in wp-content/plugins/acquaintsoft-sidebar-generator/view/sidebar.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/acquaintsoft-sidebar-generator/acquaintsoft_sidebar_generator.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'Admin' not found in wp-content/plugins/acquaintsoft-sidebar-generator/include/admin/inc/class-admin-array.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: personalize, sidebar, custom sidebars, widget, custom...

acquaintsoft-sidebar-generator/acquaintsoft_sidebar_generator.php 85% from 13 tests

This is the main PHP file of "Acquaintsoft sidebar generator" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("acquaintsoft-sidebar-generator.php" instead of "acquaintsoft_sidebar_generator.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin6,510 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 101)
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity35.50
▷ Minimum class complexity1.00
▷ Maximum class complexity129.00
Average method complexity4.70
▷ Minimum method complexity1.00
▷ Maximum method complexity101.00
Code structure
▷ Abstract classes16.25%
▷ Concrete classes1593.75%
▷ Final classes00.00%
▷ Static methods4026.85%
▷ Public methods11577.18%
▷ Protected methods1912.75%
▷ Private methods1510.07%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants1333.33%
▷ Class constants2666.67%
▷ Public constants26100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/3.png2.15KB1.60KB▼ 25.47%